Tips and Tricks in a world of Mix

Posts tagged ‘AWS’

AWS getting logs

This slideshow requires JavaScript.

1

Go to applications – see comething is wrong

2

See warning or error inside

3

See details of the warning/error

4

If not enough – go to logs, set logs per request, get 100 first and download it

Advertisements

Deploy to AWS with “eb deploy”

Install the Elastic Beanstalk Command Line Interface (EB CLI)

to be sure (if used long time ago )-  upgrading it all over

 pip install --upgrade --user awsebcli

C:\Dev\MyProj>eb –version
EB CLI 3.7.3 (Python 3.5.1)

C:\Dev\MyProj>eb init

Select a default region
1) us-east-1 : US East (N. Virginia)
2) us-west-1 : US West (N. California)
3) us-west-2 : US West (Oregon)
4) eu-west-1 : EU (Ireland)
5) eu-central-1 : EU (Frankfurt)
6) ap-southeast-1 : Asia Pacific (Singapore)
7) ap-southeast-2 : Asia Pacific (Sydney)
8) ap-northeast-1 : Asia Pacific (Tokyo)
9) ap-northeast-2 : Asia Pacific (Seoul)
10) sa-east-1 : South America (Sao Paulo)
11) cn-north-1 : China (Beijing)
(default is 3):
ERROR: AttributeError :: ‘NoneType’ object has no attribute ‘get_frozen_credentials’

AWSCredentials

C:\Dev\MyProj>aws configure
AWS Access Key ID [None]:…

ERROR: Elastic Beanstalk could not find any platforms. Ensure you have the necessary permissions to access Elastic Beanstalk.

Added my user in AWS to AWSElasticBeanstalkFullAccess

And now getting the applications I have or want to create

Select an application to use
1) kaidanov-angular2-mean
2) [ Create new Application ]
(default is 2):

Deploying to AWS

C:\Dev\angular2-nodejs-udemy-seed-project\01 Seed>eb deploy
Creating application version archive “app-cd57-161205_112803”.
Uploading kaidanov-angular2-mean/app-cd57-161205_112803.zip to S3. This may take a while.
Upload Complete.
INFO: Environment update is starting.
INFO: Deploying new version to instance(s).
— Events — (safe to Ctrl+C) Use “eb abort” to cancel the command.

Useful links

EB CLI Command Reference

Install the Elastic Beanstalk Command Line Interface (EB CLI)

Most important are the LOGS – Instance Logs

 

 

Tag Cloud

%d bloggers like this: