-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: update variable names * feat: add default executor * refactor: replace image with default executor * fix: remove unnecessary parameter * test: debugging * chore: fix typo * fix: update variable names * fix: resolve more pr comments * fix: resolve lint errors * fix: typos * fix: correct variable name
- Loading branch information
Showing
30 changed files
with
242 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ description: | | |
usage: | ||
version: 2.1 | ||
orbs: | ||
aws-cli: circleci/aws-cli@3.1 | ||
aws-cli: circleci/aws-cli@4.0 | ||
aws-ecs: circleci/[email protected] | ||
jobs: | ||
deploy_scheduled_task: | ||
|
@@ -13,7 +13,7 @@ usage: | |
steps: | ||
- aws-cli/setup: | ||
# This example uses CircleCI's OpenID Connect Token to generate temporary AWS keys | ||
role-arn: "arn:aws:iam::123456789012:role/OIDC_ARN" | ||
role_arn: "arn:aws:iam::123456789012:role/OIDC_ARN" | ||
region: AWS_REGION | ||
profile_name: "OIDC-PROFILE" | ||
session-duration: 3600 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
description: | | ||
Update an ECS service using OIDC for authentication. | ||
Import the aws-cli orb and authenticate using the aws-cli/setup command with a valid role-arn for OIDC authentication. | ||
Import the aws-cli orb and authenticate using the aws-cli/setup command with a valid role_arn for OIDC authentication. | ||
usage: | ||
version: 2.1 | ||
orbs: | ||
aws-ecr: circleci/[email protected] | ||
aws-ecs: circleci/[email protected] | ||
# Importing aws-cli orb is required for authentication | ||
aws-cli: circleci/aws-cli@3.1 | ||
aws-cli: circleci/aws-cli@4.0 | ||
workflows: | ||
build-and-deploy: | ||
jobs: | ||
|
@@ -16,7 +16,7 @@ usage: | |
# Add authentication step with OIDC using aws-cli/setup command | ||
- aws-cli/setup: | ||
profile: "OIDC-USER" | ||
role-arn: "arn:aws:iam::123456789012:role/VALID_OIDC_ECR_ROLE" | ||
role_arn: "arn:aws:iam::123456789012:role/VALID_OIDC_ECR_ROLE" | ||
# Must use same profile configured in aws-cli/setup command | ||
profile: "OIDC-USER" | ||
registry-id: AWS_ECR_REGISTRY_ID | ||
|
@@ -28,7 +28,7 @@ usage: | |
# Add authentication step with OIDC using aws-cli/setup command | ||
- aws-cli/setup: | ||
profile: "OIDC-USER" | ||
role-arn: "arn:aws:iam::123456789012:role/VALID_OIDC_ECS_ROLE" | ||
role_arn: "arn:aws:iam::123456789012:role/VALID_OIDC_ECS_ROLE" | ||
# Must use same profile configured in aws-cli/setup command | ||
profile: "OIDC-USER" | ||
requires: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,15 +3,15 @@ usage: | |
version: 2.1 | ||
orbs: | ||
aws-ecs: circleci/[email protected] | ||
aws-cli: circleci/aws-cli@3.1 | ||
aws-cli: circleci/aws-cli@4.0 | ||
jobs: | ||
run_task: | ||
docker: | ||
- image: cimg/python:3.10 | ||
steps: | ||
- aws-cli/setup: | ||
profile: "OIDC-USER" | ||
role-arn: "arn:aws:iam::123456789012:role/VALID_OIDC_ECS_ROLE" | ||
role_arn: "arn:aws:iam::123456789012:role/VALID_OIDC_ECS_ROLE" | ||
- aws-ecs/run_task: | ||
cluster: cluster1 | ||
task_definition: myapp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ description: | | |
usage: | ||
version: 2.1 | ||
orbs: | ||
aws-cli: circleci/aws-cli@3.1 | ||
aws-cli: circleci/aws-cli@4.0 | ||
aws-ecs: circleci/[email protected] | ||
jobs: | ||
update-tag: | ||
|
@@ -13,7 +13,7 @@ usage: | |
steps: | ||
- aws-cli/setup: | ||
# This example uses CircleCI's OpenID Connect Token to generate temporary AWS keys | ||
role-arn: "arn:aws:iam::123456789012:role/OIDC_ARN" | ||
role_arn: "arn:aws:iam::123456789012:role/OIDC_ARN" | ||
region: AWS_REGION | ||
profile_name: "OIDC-PROFILE" | ||
session-duration: 3600 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ description: Use the AWS CLI and this orb to create a new ECS task definition ba | |
usage: | ||
version: 2.1 | ||
orbs: | ||
aws-cli: circleci/aws-cli@3.1 | ||
aws-cli: circleci/aws-cli@4.0 | ||
aws-ecs: circleci/[email protected] | ||
jobs: | ||
update-tag: | ||
|
@@ -11,7 +11,7 @@ usage: | |
steps: | ||
- aws-cli/setup: | ||
# This example uses CircleCI's OpenID Connect Token to generate temporary AWS keys | ||
role-arn: "arn:aws:iam::123456789012:role/OIDC_ARN" | ||
role_arn: "arn:aws:iam::123456789012:role/OIDC_ARN" | ||
region: AWS_REGION | ||
profile_name: "OIDC-PROFILE" | ||
session-duration: 3600 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ description: Verify the deployment of an ECS revision. | |
usage: | ||
version: 2.1 | ||
orbs: | ||
aws-cli: circleci/aws-cli@3.1 | ||
aws-cli: circleci/aws-cli@4.0 | ||
aws-ecs: circleci/[email protected] | ||
jobs: | ||
verify-deployment: | ||
|
@@ -11,7 +11,7 @@ usage: | |
steps: | ||
- aws-cli/setup: | ||
# This example uses CircleCI's OpenID Connect Token to generate temporary AWS keys | ||
role-arn: "arn:aws:iam::123456789012:role/OIDC_ARN" | ||
role_arn: "arn:aws:iam::123456789012:role/OIDC_ARN" | ||
region: AWS_REGION | ||
profile_name: "OIDC-PROFILE" | ||
session-duration: 3600 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
description: | | ||
A Python Docker image built to run on CircleCI that contains python installed with pyenv and packaging tools pip, pipenv, and poetry. | ||
parameters: | ||
tag: | ||
description: > | ||
Select any of the available tags here: https://circleci.com/developer/images/image/cimg/python. | ||
type: string | ||
default: "3.10.4" | ||
resource_class: | ||
description: Configure the executor resource class | ||
type: enum | ||
enum: ["small", "medium", "medium+", "large", "xlarge", "2xlarge", "2xlarge+"] | ||
default: "medium" | ||
|
||
docker: | ||
- image: cimg/python:<<parameters.tag>> | ||
resource_class: <<parameters.resource_class>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.