From 1c53fd35ebf0628487d87aa48806fce5f5ef55c4 Mon Sep 17 00:00:00 2001 From: marboledacci Date: Thu, 21 Nov 2024 09:12:04 -0500 Subject: [PATCH] Update examples (#227) * Update deploy_service_update.yml * update profile to profile_name on aws-cli/setup examples * Fix name of requires in example --- src/examples/deploy_service_update.yml | 6 +++--- src/examples/run_task_ec2.yml | 2 +- src/examples/run_task_fargate.yml | 3 ++- src/examples/run_task_fargate_spot.yml | 3 ++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/examples/deploy_service_update.yml b/src/examples/deploy_service_update.yml index b2e4716..598797a 100644 --- a/src/examples/deploy_service_update.yml +++ b/src/examples/deploy_service_update.yml @@ -15,7 +15,7 @@ usage: auth: # Add authentication step with OIDC using aws-cli/setup command - aws-cli/setup: - profile: "OIDC-USER" + profile_name: "OIDC-USER" role_arn: "arn:aws:iam::123456789012:role/VALID_OIDC_ECR_ROLE" # Must use same profile configured in aws-cli/setup command profile_name: "OIDC-USER" @@ -26,13 +26,13 @@ usage: auth: # Add authentication step with OIDC using aws-cli/setup command - aws-cli/setup: - profile: "OIDC-USER" + profile_name: "OIDC-USER" role_arn: "arn:aws:iam::123456789012:role/VALID_OIDC_ECS_ROLE" # Must use same profile configured in aws-cli/setup command profile_name: "OIDC-USER" region: us-east-1 requires: - - aws-ecr/build-and-push-image + - aws-ecr/build_and_push_image family: '${MY_APP_PREFIX}-service' cluster: '${MY_APP_PREFIX}-cluster' container_image_name_updates: 'container=${MY_APP_PREFIX}-service,tag=${CIRCLE_SHA1}' diff --git a/src/examples/run_task_ec2.yml b/src/examples/run_task_ec2.yml index 918f021..9e99cc9 100644 --- a/src/examples/run_task_ec2.yml +++ b/src/examples/run_task_ec2.yml @@ -10,7 +10,7 @@ usage: - image: cimg/python:3.10 steps: - aws-cli/setup: - profile: "OIDC-USER" + profile_name: "OIDC-USER" role_arn: "arn:aws:iam::123456789012:role/VALID_OIDC_ECS_ROLE" - aws-ecs/run_task: cluster: cluster1 diff --git a/src/examples/run_task_fargate.yml b/src/examples/run_task_fargate.yml index b5b5406..6d4926b 100644 --- a/src/examples/run_task_fargate.yml +++ b/src/examples/run_task_fargate.yml @@ -3,13 +3,14 @@ usage: version: 2.1 orbs: aws-ecs: circleci/aws-ecs@6.0.0 + aws-cli: circleci/aws-cli@5.1.0 jobs: run_task: docker: - image: cimg/python:3.10 steps: - aws-cli/setup: - profile: "OIDC-USER" + profile_name: "OIDC-USER" role_arn: "arn:aws:iam::123456789012:role/VALID_OIDC_ECS_ROLE" - aws-ecs/run_task: cluster: cluster1 diff --git a/src/examples/run_task_fargate_spot.yml b/src/examples/run_task_fargate_spot.yml index c0ab01f..5141d32 100644 --- a/src/examples/run_task_fargate_spot.yml +++ b/src/examples/run_task_fargate_spot.yml @@ -6,13 +6,14 @@ usage: version: 2.1 orbs: aws-ecs: circleci/aws-ecs@6.0.0 + aws-cli: circleci/aws-cli@5.1.0 jobs: run_task: docker: - image: cimg/python:3.10 steps: - aws-cli/setup: - profile: "OIDC-USER" + profile_name: "OIDC-USER" role_arn: "arn:aws:iam::123456789012:role/VALID_OIDC_ECS_ROLE" - aws-ecs/run_task: cluster: $CLUSTER_NAME