I can’t figure out how to setup elastic beanstalk on CirclCI.
I have two brunch, which is master and staging.
As you can see, master means production environment and staging means development.
First I set up environment variable like this.
And next, made circleci.yml like this.
machine: python: version: 2.7.6 dependencies: pre: - pip install awsebcli - printenv database: override: - exit 0 test: override: - exit 0 deployment: staging: branch: staging commands: - eb deploy vegewel-staging production: branch: master commands: - eb deploy vegewel
And also set up .elasticbeanstalk/config.yml like this.
branch-defaults: master: environment: vegewel staging: environment: vegewel-staging global: application_name: vegewel default_ec2_keyname: vegewel default_platform: 64bit Amazon Linux 2016.03 v2.1.6 running Ruby 2.3 (Passenger Standalone) default_region: ap-northeast-1 profile: eb-cli sc: git
But every time I check on circleci console, I’ve been facing this problem.
eb deploy vegewel-staging ERROR: The config profile (eb-cli) could not be found
Any idea? Thanks in advance.