Use EB Deploy Without Using an Orb

Overview:

Sometimes there are breaking changes made by updates to the circleci/aws-elastic-beanstalk orb. Currently, v3.20.5 of the Elastic Beanstalk CLI contains changes that are incompatible with CircleCI's architecture. This means that the orbs like our circleci/aws-elastic-beanstalk orb will not work until a new update is pushed because the orb pulls from the latest version.

 

Solution:

While an update on our end should be out shortly to address the issue with the orb, this still means that v3.20.5 does not work with CircleCI. As a workaround, we would recommend creating commands that will emulate the function of the orb, while installing the most recently compatible version of the EB CLI (v3.20.3). For example, these commands could be added to your config and modified as needed to suit your environment:

 

orbs:
aws-cli: circleci/aws-cli@3.1.4

commands:
install-ebcli:
description: "Install EB CLI"
steps:
- run:
name: Install pip3 and ebcli
command: |
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python3-pip
pip3 install awsebcli==3.20.3

deploy-eb:
description: "Deploy command"
steps:
- aws-cli/install
- install-ebcli
- aws-cli/setup:
aws-region: AWS_REGION
aws-access-key-id: AWS_ACCESS_KEY_ID
aws-secret-access-key: AWS_SECRET_ACCESS_KEY
- run:
name: Deploy using eb cli
command: |
eb deploy --[PLACE DEPLOY COMMAND PARAMETERS HERE]--

Additional Resources:

Was this article helpful?
1 out of 1 found this helpful

Comments

0 comments

Article is closed for comments.

Articles in this section