Skip to content

Commit

Permalink
Update examples (#227)
Browse files Browse the repository at this point in the history
* Update deploy_service_update.yml

* update profile to profile_name on aws-cli/setup examples

* Fix name of requires in example
  • Loading branch information
marboledacci authored Nov 21, 2024
1 parent e2196a2 commit 1c53fd3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/examples/deploy_service_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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}'
2 changes: 1 addition & 1 deletion src/examples/run_task_ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/examples/run_task_fargate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ usage:
version: 2.1
orbs:
aws-ecs: circleci/[email protected]
aws-cli: circleci/[email protected]
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
Expand Down
3 changes: 2 additions & 1 deletion src/examples/run_task_fargate_spot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ usage:
version: 2.1
orbs:
aws-ecs: circleci/[email protected]
aws-cli: circleci/[email protected]
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
Expand Down

0 comments on commit 1c53fd3

Please sign in to comment.