Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.46 KB

README.md

File metadata and controls

34 lines (25 loc) · 1.46 KB

AWS CLI Orb CircleCI status CircleCI Orb Version GitHub license CircleCI Community

Easily install and configure the AWS CLI in your CircleCI jobs.

Usage

See this orb's listing in CircleCI's Orbs Registry for details on usage, or see below example:

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