Skip to content

Commit

Permalink
Update examples (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
marboledacci authored Jan 31, 2025
1 parent 7c18f79 commit c22efa9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/examples/authentication_with_jobs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: >
usage:
version: 2.1
orbs:
aws-s3: circleci/aws-s3@4.0
aws-s3: circleci/aws-s3@4.1
# Importing aws-cli orb is required
aws-cli: circleci/aws-cli@5.1.1
workflows:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
description: >
How to use the S3 orb with alternate static credentials.
How to use the S3 orb with static credentials.
usage:
version: 2.1
orbs:
aws-s3: circleci/aws-s3@4.0
aws-s3: circleci/aws-s3@4.1
# Importing aws-cli orb is required
aws-cli: circleci/aws-cli@5.1.1
jobs:
Expand All @@ -13,11 +13,7 @@ usage:
steps:
- checkout
- run: mkdir bucket && echo "lorem ipsum" > bucket/build_asset.txt
# Add authentication step with static keys using aws-cli/setup command
- aws-cli/setup:
aws_access_key_id: AWS_ACCESS_KEY_ID_BLUE
aws_secret_access_key: AWS_SECRET_ACCESS_KEY_BLUE
region: AWS_REGION_BLUE
- aws-cli/install
- aws-s3/sync:
from: bucket
to: "s3://my-s3-bucket-name/prefix"
Expand All @@ -31,4 +27,5 @@ usage:
workflows:
s3-example:
jobs:
- build
- build:
context: AWS_CREDENTIALS
2 changes: 1 addition & 1 deletion src/examples/sync_and_copy_with_oidc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: >
usage:
version: 2.1
orbs:
aws-s3: circleci/aws-s3@4.0
aws-s3: circleci/aws-s3@4.1
# Importing aws-cli orb is required
aws-cli: circleci/aws-cli@5.1.1
jobs:
Expand Down

0 comments on commit c22efa9

Please sign in to comment.