Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout

jobs:
jobs:
atmos-apply:
name: ${{ inputs.component }}-${{ inputs.stack }}

Expand Down
107 changes: 1 addition & 106 deletions examples/snippets/stacks/workflows/quickstart/platform/argocd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,109 +158,4 @@ workflows:
echo "Exiting."
exit 0
fi
- command: terraform deploy sso-saml-provider -s plat-use1-prod

deploy/terraform-argocdrepo-pat:
description: Prompt for creating the argocd/terraform/argocd-repo GitHub PAT
steps:
- type: shell
command: |-
echo "Please create a fine-grained GitHub PAT"
echo "Scope: acme/argocd-deploy-non-prod and acme/argocd-deploy-prod"
echo "Permissions: (Repository) Administration: Read and write, Contents: Read and write, Metadata: Read-only. (Organization) Members: Read-only"
echo "Follow this manual to create PAT https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token"
echo "Upload the fine-grained GitHub PAT to AWS SSM"
stty -echo
read -p "GitHub PAT (text will be hidden): " -r GITHUB_PAT
stty echo
if [ -z "GITHUB_PAT" ]
then
echo 'Inputs cannot be blank please try again!'
exit 0
fi
AWS_PROFILE=acme-core-gbl-auto-admin chamber write argocd/github api_key $GITHUB_PAT

deploy/terraform-webhooks-nonprod-pat:
description: Prompt for creating the argocd/terraform-webhooks/nonprod GitHub PAT
steps:
- type: shell
command: |-
echo "Please create a fine-grained GitHub PAT"
echo "Scope: acme/argocd-deploy-non-prod"
echo "Permissions: (Repository) Webhooks: Read and write, Metadata: Read-only"
echo "Follow this manual to create PAT https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token"
echo "Upload the fine-grained GitHub PAT to AWS SSM"
stty -echo
read -p "GitHub PAT (text will be hidden): " -r GITHUB_PAT
stty echo
if [ -z "GITHUB_PAT" ]
then
echo 'Inputs cannot be blank please try again!'
exit 0
fi
AWS_PROFILE=acme-plat-gbl-dev-admin chamber write argocd/github api_key $GITHUB_PAT
AWS_PROFILE=acme-plat-gbl-staging-admin chamber write argocd/github api_key $GITHUB_PAT

deploy/terraform-webhooks-prod-pat:
description: Prompt for creating the argocd/terraform-webhooks/prod GitHub PAT
steps:
- type: shell
command: |-
echo "Please create a fine-grained GitHub PAT"
echo "Scope: acme/argocd-deploy-prod"
echo "Permissions: (Repository) Webhooks: Read and write, Metadata: Read-only"
echo "Follow this manual to create PAT https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token"
echo "Upload the fine-grained GitHub PAT to AWS SSM"
stty -echo
read -p "GitHub PAT (text will be hidden): " -r GITHUB_PAT
stty echo
if [ -z "GITHUB_PAT" ]
then
echo 'Inputs cannot be blank please try again!'
exit 0
fi
AWS_PROFILE=acme-plat-gbl-prod-admin chamber write argocd/github api_key $GITHUB_PAT

deploy/app-notifications-pat:
description: Prompt for creating the ARGOCD_APP_NOTIFICATIONS GitHub PAT
steps:
- type: shell
command: |-
echo "Please create a classic GitHub PAT"
echo "Scope: n/a"
echo "Permissions: repo:status"
echo "Follow this manual to create PAT https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token"
echo "Upload the classic GitHub PAT to AWS SSM"
stty -echo
read -p "GitHub PAT (text will be hidden): " -r GITHUB_PAT
stty echo
if [ -z "GITHUB_PAT" ]
then
echo 'Inputs cannot be blank please try again!'
exit 0
fi
AWS_PROFILE=acme-plat-gbl-dev-admin chamber write argocd/notifications/notifiers/common github-token $GITHUB_PAT
AWS_PROFILE=acme-plat-gbl-staging-admin chamber write argocd/notifications/notifiers/common github-token $GITHUB_PAT
AWS_PROFILE=acme-plat-gbl-prod-admin chamber write argocd/notifications/notifiers/common github-token $GITHUB_PAT

deploy/github-nonprod-pat:
description: Prompt for creating the argocd/github/nonprod GitHub PAT
steps:
- type: shell
command: |-
echo "Please create a fine-grained GitHub PAT"
echo "Scope: acme/argocd-deploy-non-prod and acme/infrastructure"
echo "Permissions: (Repository) Contents: Read and write, Metadata: Read-only"
echo "Follow this manual to create PAT https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token"
echo "Please upload this PAT to 1Password"

deploy/github-prod-pat:
description: Prompt for creating the argocd/github/prod GitHub PAT
steps:
- type: shell
command: |-
echo "Please create a fine-grained GitHub PAT"
echo "Scope: acme/argocd-deploy-prod and acme/infrastructure"
echo "Permissions: (Repository) Contents: Read and write, Metadata: Read-only"
echo "Follow this manual to create PAT https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token"
echo "Please upload this PAT to 1Password"
- command: terraform deploy sso-saml-provider -s plat-use1-prod
Loading