question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[DOC] - Deployment on AWS suggestions for improvement

See original GitHub issue

Preliminary Checks

Summary

The first time we ran the guided init for AWS, we set only the two AWS credential variables as directed. We got all the way through the questions and then received the error that GITHUB_USERNAME was not defined: 2022-12-06_13-57-33

We then looked at the code where that error was coming from and it looked like we would need to specify GITHUB_TOKEN as well, using a personal access token. We figured we might as well set the AWS_REGION=us-east-1 for good measure.

The 2nd time we ran the guided init, it worked, though the config file generated specified us-west-2 for some reason. So we edited the config and changed it to us-east-1 before proceeding to the nebari deploy step. The nebari deploy then went find.

Notes on running the guided init:

  • it was confusing to be asked for the client_id and client_secret twice during the guided init. We were thinking we did something wrong.
  • it should be mentioned that the github user running the terraform deploy must have the ability to create repositories.

Steps to Resolve this Issue

We set the additional env vars as described above.

@jkellndorfer

Issue Analytics

  • State:open
  • Created 9 months ago
  • Reactions:1
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
trallardcommented, Dec 13, 2022

Since this issue is related to the nebari CLI, I will move it over to the main nebari repository

1reaction
viniciusdccommented, Dec 9, 2022

@pavithraes could you create two action items based on this issue? The items would be:

  • reinforce GITHUB environment variables consumption when using guided-init; the contents are running it to validate the duple request of such information and if it’s properly configured.
  • validate in the code if AWS_REGION is correctly populated in the config yaml during initialization.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Best practices for developing and deploying cloud ...
Coding best practices · Start simple and add complexity only when you need it · Align with the AWS Well-Architected Framework · Every...
Read more >
Best Practices: Managing and Deploying Apps and Cookbooks
Recommendation : Use a robust deployment strategy, which allows instances running the old version of code to continue handling requests until you have...
Read more >
Speeding up deployments - Amazon Elastic Container Service
To speed up deployment times, modify the default load balancer, Amazon ECS agent, service and task definition options. The following sections detail how...
Read more >
Getting started with Strategy Recommendations
This section describes how to get started with Migration Hub Strategy Recommendations. Topics. Prerequisites · Step 1: Download the collector · Step 2:...
Read more >
Deployment methods - Practicing Continuous Integration and ...
This section discusses the most common deployment methods: all at once (deploy in place), rolling, immutable, and blue/green. AWS indicates which of these ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found