I manage to run eb deploy
successfully from the command prompt and get the following:
2023-05-21 21:27:31 INFO Environment update completed successfully.
And when I run eb list
I get as result the name of my environment * simply-dev
.
I can run eb status --verbose
and see everything looks healthy/green.
Environment details for: simply-dev
Application name: simply
Region: us-east-2
Deployed Version: app-230523_221320835290
Environment ID: e-rdyf63m2dr
Platform: arn:aws:elasticbeanstalk:us-east-2::platform/Python 3.8 running on 64bit Amazon Linux 2/3.5.2
Tier: WebServer-Standard-1.0
CNAME: exit.us-east-2.elasticbeanstalk.com
Updated: 2023-05-23 21:17:44.717000+00:00
Status: Ready
Health: Green
Running instances: 1
i-034a7471b6b368e1b: healthy
However, when I run eb console
, the console opened in the internet browser does not show any application or environment and keeps loading endlessly. I also checked I am in the same region and both show the same Account ID. I also tried deploying in other regions with the same result.
Any idea of why I cannot see the environment in the AWS console?
I am checking the logs from eb logs --zip
but I don’t really understand much. Any idea what to look for?
The Chrome Developers Tools shows an error but I am not sure if it is related to this:
2
Answers
AWS support finally gave me the solution. Basically, it seems I was creating my environment in another account. It seems there are AWS credentials (found at
C:/Users/Your_User/.aws/config
) but EB cli has its own credentials which are input as part of theeb init
command, and can be found at the same.aws/config
file with the profile named "eb-cli". The access key credentials here are the ones that are used by default when setting up the environment.As an example, once I setup the credentials using
aws configure
, my output is:After running
eb init
command, I have the following credentials:So in my case, somehow my "eb-cli" profile contained valid credentials in another account (how I did that, I don't know). The fix is to navigate to the credentials file and change the access keys for the "eb-cli" profile ones found in the .aws/config.
have you navigate to EC2 dashboard and make sure there has a running VM instance with ID
i-034a7471b6b368e1b
?. If it not exist, You better ask AWS technical support regarding to this case