From c22efa916f495631e80165f908fdcdf0b8ac391d Mon Sep 17 00:00:00 2001 From: marboledacci Date: Fri, 31 Jan 2025 11:42:16 -0500 Subject: [PATCH] Update examples (#62) --- src/examples/authentication_with_jobs.yml | 2 +- ...rride_credentials.yml => static_credentials.yml} | 13 +++++-------- src/examples/sync_and_copy_with_oidc.yml | 2 +- 3 files changed, 7 insertions(+), 10 deletions(-) rename src/examples/{override_credentials.yml => static_credentials.yml} (65%) diff --git a/src/examples/authentication_with_jobs.yml b/src/examples/authentication_with_jobs.yml index f3da23f..beb3ad1 100644 --- a/src/examples/authentication_with_jobs.yml +++ b/src/examples/authentication_with_jobs.yml @@ -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: diff --git a/src/examples/override_credentials.yml b/src/examples/static_credentials.yml similarity index 65% rename from src/examples/override_credentials.yml rename to src/examples/static_credentials.yml index f4a0b8e..b694cc3 100755 --- a/src/examples/override_credentials.yml +++ b/src/examples/static_credentials.yml @@ -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: @@ -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" @@ -31,4 +27,5 @@ usage: workflows: s3-example: jobs: - - build + - build: + context: AWS_CREDENTIALS diff --git a/src/examples/sync_and_copy_with_oidc.yml b/src/examples/sync_and_copy_with_oidc.yml index 3b43778..0a771a7 100755 --- a/src/examples/sync_and_copy_with_oidc.yml +++ b/src/examples/sync_and_copy_with_oidc.yml @@ -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: