Skip to content

Instantly share code, notes, and snippets.

@mitcharoo
Created March 30, 2020 21:07
Show Gist options
  • Save mitcharoo/ecc74e4a518a075f0d1ebd2d4a95ed9a to your computer and use it in GitHub Desktop.
Save mitcharoo/ecc74e4a518a075f0d1ebd2d4a95ed9a to your computer and use it in GitHub Desktop.
Gitlab deploy to Elastic Beanstalk
development:
type: deploy
environment: production
script:
- mkdir ~/.aws/
- touch ~/.aws/credentials
- printf "[eb-cli]\naws_access_key_id = %s\naws_secret_access_key = %s\n" "$AWS_ACCESS_KEY_ID" "$AWS_SECRET_ACCESS_KEY" >> ~/.aws/credentials
- touch ~/.aws/config
- printf "[profile eb-cli]\nregion=ap-southeast-1\noutput=json" >> ~/.aws/config
- eb deploy funwitheb-production
only:
- master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment