Easily install and configure the AWS CLI in your CircleCI jobs.
See this orb's listing in CircleCI's Orbs Registry for details on usage, or see below example:
In this example config.yml
snippet, the required AWS secrets (Access Key ID, Secret Access Key) are stored, via Contexts, as environment variables in the aws
context and then read as default parameter values by the aws-cli/setup
command.
version: 2.1
orbs:
aws-cli: circleci/aws-cli@x.y
jobs:
aws-cli-example:
executor: aws-cli/default
steps:
- checkout
- aws-cli/setup:
profile-name: example
- run: echo "Run your code here"
workflows:
version: 2
aws-cli:
jobs:
- aws-cli-example:
context: aws