Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Deploy to AWS Beanstalk with Bitbucket pipeline

SHUTAO SHEN
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 17, 2018
eb init djangowebsite -r ap-southeast-1 -p python-3.4
You have not yet set up your credentials or your credentials are incorrect
You must provide your credentials.
(aws-access-id): ERROR: EOFError - EOF when reading a lin

According to https://confluence.atlassian.com/bitbucket/deploy-to-amazon-aws-875304040.html  ->   'Add your AWS credentials to Bitbucket Pipelines' section. I followed the steps, and hit above Error.

As I can't find a non-interactive way to set the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to AWS EB Cli, I'm wondering how can this 'Deployment guide' works. ( create a private docker with AWS EB Cli installed might work, I'm still trying )

And the sample provided is different from what the 'Deployment guid' said ??? https://confluence.atlassian.com/bitbucket/deploy-to-amazon-aws-875304040.html

1 answer

0 votes
SHUTAO SHEN
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 18, 2018

Temporary solved.

 

Add line, put the credential into '~/.aws/config' directly.

- echo -e '[profile eb-cli]\naws_access_key_id = ' $AWS_ACCESS_KEY_ID ' \naws_secret_access_key = ' $AWS_SECRET_ACCESS_KEY > ~/.aws/config

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events