Skip to content

Commit bbb479f

Browse files
milldrgithub-actions[bot]
authored andcommitted
(github actions) generated latest snippets
1 parent 799e559 commit bbb479f

10 files changed

Lines changed: 45 additions & 61 deletions

File tree

examples/snippets/.github/workflows/atmos-pro-terraform-apply.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353

5454
- name: Apply Atmos Component
5555
uses: cloudposse/github-action-atmos-terraform-apply@v4
56+
env:
57+
ATMOS_PROFILE: "github"
5658
with:
5759
# Atmos Pro args
5860
component: ${{ inputs.component }}

examples/snippets/.github/workflows/atmos-pro-terraform-plan.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545

4646
- name: Plan Atmos Component
4747
uses: cloudposse/github-action-atmos-terraform-plan@v5
48+
env:
49+
ATMOS_PROFILE: "github"
4850
with:
4951
# Atmos Pro args
5052
component: ${{ inputs.component }}

examples/snippets/.github/workflows/atmos-pro.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ jobs:
7272
uses: cloudposse/github-action-atmos-affected-stacks@v6
7373
env:
7474
ATMOS_PRO_WORKSPACE_ID: ${{ vars.ATMOS_PRO_WORKSPACE_ID }}
75+
ATMOS_PROFILE: "github"
7576
with:
7677
atmos-version: ${{ vars.ATMOS_VERSION }}
7778
atmos-config-path: ${{ vars.ATMOS_CONFIG_PATH }}

examples/snippets/stacks/workflows/quickstart/app/app-on-lambda-with-atmos.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ workflows:
33
steps:
44
- command: workflow init/artifact-bucket -f quickstart/app/app-on-lambda-with-atmos
55
- command: workflow init/app-on-lambda-with-atmos -f quickstart/app/app-on-lambda-with-atmos
6-
- command: workflow deploy/github-oidc-role -f quickstart/app/app-on-lambda-with-atmos
6+
- command: workflow deploy/iam-role -f quickstart/app/app-on-lambda-with-atmos
77
- command: workflow deploy/artifact-bucket -f quickstart/app/app-on-lambda-with-atmos
88

99
init/artifact-bucket:
@@ -18,14 +18,14 @@ workflows:
1818
steps:
1919
- command: terraform deploy s3-bucket/github-action-artifacts -s core-us-east-1-artifacts
2020

21-
deploy/github-oidc-role:
21+
deploy/iam-role:
2222
description: |
23-
This workflow deploys the github-oidc-role for the app-on-lambda-with-atmos workflow.
23+
This workflow deploys the iam-role for the app-on-lambda-with-atmos workflow.
24+
TODO: Create iam-role/lambda-publish catalog configuration to replace github-oidc-role/lambda-publish
2425
steps:
25-
- command: terraform deploy github-oidc-role/lambda-publish -s core-gbl-artifacts
26-
- command: terraform deploy github-oidc-role/app-on-lambda-with-atmos -s plat-gbl-dev
27-
- command: terraform deploy github-oidc-role/app-on-lambda-with-atmos -s plat-gbl-staging
28-
- command: terraform deploy github-oidc-role/app-on-lambda-with-atmos -s plat-gbl-prod
26+
# TODO: Add iam-role/lambda-publish deployment
27+
# - command: terraform deploy iam-role/lambda-publish -s core-gbl-artifacts
28+
- command: echo "TODO - iam-role/lambda-publish deployment not yet configured"
2929

3030
init/app-on-lambda-with-atmos:
3131
description: Initializes SSM parameters for app-on-lambda-with-atmos, these are not valid until the github actions run to update the values.

examples/snippets/stacks/workflows/quickstart/foundation/accounts.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ workflows:
1717
description: Deploys all AWS Organization accounts
1818
steps:
1919
- command: terraform apply account -s core-gbl-root
20-
- command: terraform deploy account-map -s core-gbl-root
2120

2221
deploy/account-settings:
2322
description: Apply AWS Account settings for best practices.
@@ -26,7 +25,6 @@ workflows:
2625
- command: terraform deploy account-settings -s core-gbl-audit
2726
- command: terraform deploy account-settings -s core-gbl-auto
2827
- command: terraform deploy account-settings -s core-gbl-dns
29-
- command: terraform deploy account-settings -s core-gbl-identity
3028
- command: terraform deploy account-settings -s core-gbl-network
3129
- command: terraform deploy account-settings -s core-gbl-root
3230
- command: terraform deploy account-settings -s core-gbl-security

examples/snippets/stacks/workflows/quickstart/foundation/baseline.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ workflows:
1313
description: Vendor baseline layer components.
1414
steps:
1515
- command: vendor pull --component account
16-
- command: vendor pull --component account-map
1716
- command: vendor pull --component account-quotas
1817
- command: vendor pull --component account-settings
1918
- command: vendor pull --component cloudtrail
@@ -30,10 +29,7 @@ workflows:
3029
- command: terraform deploy tfstate-backend -var="access_roles_enabled=false" --stack core-use1-root --init-run-reconfigure=false
3130

3231
deploy/tfstate:
33-
description: >-
34-
Deploy Terraform State Backend.
35-
36-
Finalize Terraform State Backend access, which requires AWS Teams to be deployed first.
32+
description: Deploy Terraform State Backend.
3733
steps:
3834
- command: terraform deploy tfstate-backend --stack core-use1-root
3935

examples/snippets/stacks/workflows/quickstart/foundation/github.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ workflows:
1111
description: |
1212
This workflow deploys Github OIDC Provider Configuration for Github Runners
1313
steps:
14-
- command: terraform deploy github-oidc-provider -s core-gbl-identity
14+
- command: terraform deploy github-oidc-provider -s core-use1-auto
1515
- command: terraform deploy github-oidc-provider -s core-gbl-artifacts
1616
- command: terraform deploy github-oidc-provider -s core-gbl-auto
1717
- command: terraform deploy github-oidc-provider -s plat-gbl-dev

examples/snippets/stacks/workflows/quickstart/foundation/gitops.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ workflows:
1010
description: Vendor Gitops required components.
1111
steps:
1212
- command: vendor pull --component github-oidc-provider
13-
- command: vendor pull --component github-oidc-role
13+
- command: vendor pull --component iam-role
1414
- command: vendor pull --component dynamodb
1515
- command: vendor pull --component s3-bucket
1616

1717
deploy:
1818
description: Run deployment for Gitops requirements
1919
steps:
20-
- command: terraform deploy github-oidc-provider -s core-gbl-identity
20+
- command: terraform deploy github-oidc-provider -s core-use1-auto
2121
- command: terraform deploy gitops/s3-bucket --stack core-use1-auto
2222
- command: terraform deploy gitops/dynamodb --stack core-use1-auto
23-
- command: terraform deploy github-oidc-role/gitops --stack core-use1-auto
23+
- command: terraform deploy iam-role/gitops --stack core-use1-auto

examples/snippets/stacks/workflows/quickstart/foundation/identity.yaml

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ workflows:
3737
vendor/components:
3838
description: Vendor identity layer components.
3939
steps:
40-
- command: vendor pull --component aws-saml
4140
- command: vendor pull --component aws-sso
42-
- command: vendor pull --component aws-team-roles
43-
- command: vendor pull --component aws-teams
41+
- command: vendor pull --component iam-role
4442

4543
vendor/aws-config:
4644
description: Vendor aws-config script.
@@ -59,37 +57,41 @@ workflows:
5957
deploy/all:
6058
description: Deploy all identity components.
6159
steps:
62-
- command: workflow deploy/saml -f quickstart/foundation/identity
6360
- command: workflow deploy/sso -f quickstart/foundation/identity
64-
- command: workflow deploy/teams -f quickstart/foundation/identity
65-
- command: workflow update-aws-config -f quickstart/foundation/identity
66-
67-
deploy/saml:
68-
description: Update aws-saml configuration (when adding a new Identity Provider).
69-
steps:
70-
- command: terraform deploy aws-saml -s core-gbl-identity
61+
- command: workflow deploy/iam-role -f quickstart/foundation/identity
7162

7263
deploy/sso:
7364
description: Update aws-sso configuration.
7465
steps:
7566
- command: terraform deploy aws-sso -s core-gbl-root
7667

77-
deploy/teams:
78-
description: Establish cross account AWS Teams roles for access.
68+
deploy/iam-role:
69+
description: |
70+
Deploy iam-role/terraform and iam-role/planner to all accounts (except root).
71+
These roles are used by GitHub Actions for CI/CD.
7972
steps:
80-
- command: terraform deploy aws-teams -s core-gbl-identity
81-
- command: terraform deploy aws-team-roles -s core-gbl-artifacts
82-
- command: terraform deploy aws-team-roles -s core-gbl-audit
83-
- command: terraform deploy aws-team-roles -s core-gbl-auto
84-
- command: terraform deploy aws-team-roles -s core-gbl-dns
85-
- command: terraform deploy aws-team-roles -s core-gbl-identity
86-
- command: terraform deploy aws-team-roles -s core-gbl-network
87-
- command: terraform deploy aws-team-roles -s core-gbl-root
88-
- command: terraform deploy aws-team-roles -s core-gbl-security
89-
- command: terraform deploy aws-team-roles -s plat-gbl-dev
90-
- command: terraform deploy aws-team-roles -s plat-gbl-prod
91-
- command: terraform deploy aws-team-roles -s plat-gbl-sandbox
92-
- command: terraform deploy aws-team-roles -s plat-gbl-staging
73+
# Core accounts (except root)
74+
- command: terraform deploy iam-role/terraform -s core-gbl-artifacts
75+
- command: terraform deploy iam-role/planner -s core-gbl-artifacts
76+
- command: terraform deploy iam-role/terraform -s core-gbl-audit
77+
- command: terraform deploy iam-role/planner -s core-gbl-audit
78+
- command: terraform deploy iam-role/terraform -s core-gbl-auto
79+
- command: terraform deploy iam-role/planner -s core-gbl-auto
80+
- command: terraform deploy iam-role/terraform -s core-gbl-dns
81+
- command: terraform deploy iam-role/planner -s core-gbl-dns
82+
- command: terraform deploy iam-role/terraform -s core-gbl-network
83+
- command: terraform deploy iam-role/planner -s core-gbl-network
84+
- command: terraform deploy iam-role/terraform -s core-gbl-security
85+
- command: terraform deploy iam-role/planner -s core-gbl-security
86+
# Platform accounts
87+
- command: terraform deploy iam-role/terraform -s plat-gbl-dev
88+
- command: terraform deploy iam-role/planner -s plat-gbl-dev
89+
- command: terraform deploy iam-role/terraform -s plat-gbl-staging
90+
- command: terraform deploy iam-role/planner -s plat-gbl-staging
91+
- command: terraform deploy iam-role/terraform -s plat-gbl-prod
92+
- command: terraform deploy iam-role/planner -s plat-gbl-prod
93+
- command: terraform deploy iam-role/terraform -s plat-gbl-sandbox
94+
- command: terraform deploy iam-role/planner -s plat-gbl-sandbox
9395

9496
update-aws-config:
9597
description: Update AWS Config files.

examples/snippets/stacks/workflows/quickstart/monitor/compliance.yaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,39 +37,22 @@ workflows:
3737
deploy/aws-config/superadmin:
3838
description: Deploy AWS Config into accounts that require SuperAdmin to apply
3939
steps:
40-
- command: terraform deploy aws-config-use1 -s core-use1-identity
4140
- command: terraform deploy aws-config-use1 -s core-use1-root
42-
- command: terraform deploy aws-config-use2 -s core-use2-identity
4341
- command: terraform deploy aws-config-use2 -s core-use2-root
44-
- command: terraform deploy aws-config-usw1 -s core-usw1-identity
4542
- command: terraform deploy aws-config-usw1 -s core-usw1-root
46-
- command: terraform deploy aws-config-usw2 -s core-usw2-identity
4743
- command: terraform deploy aws-config-usw2 -s core-usw2-root
48-
- command: terraform deploy aws-config-aps1 -s core-aps1-identity
4944
- command: terraform deploy aws-config-aps1 -s core-aps1-root
50-
- command: terraform deploy aws-config-apne3 -s core-apne3-identity
5145
- command: terraform deploy aws-config-apne3 -s core-apne3-root
52-
- command: terraform deploy aws-config-apne2 -s core-apne2-identity
5346
- command: terraform deploy aws-config-apne2 -s core-apne2-root
54-
- command: terraform deploy aws-config-apne1 -s core-apne1-identity
5547
- command: terraform deploy aws-config-apne1 -s core-apne1-root
56-
- command: terraform deploy aws-config-apse1 -s core-apse1-identity
5748
- command: terraform deploy aws-config-apse1 -s core-apse1-root
58-
- command: terraform deploy aws-config-apse2 -s core-apse2-identity
5949
- command: terraform deploy aws-config-apse2 -s core-apse2-root
60-
- command: terraform deploy aws-config-cac1 -s core-cac1-identity
6150
- command: terraform deploy aws-config-cac1 -s core-cac1-root
62-
- command: terraform deploy aws-config-euc1 -s core-euc1-identity
6351
- command: terraform deploy aws-config-euc1 -s core-euc1-root
64-
- command: terraform deploy aws-config-euw1 -s core-euw1-identity
6552
- command: terraform deploy aws-config-euw1 -s core-euw1-root
66-
- command: terraform deploy aws-config-euw2 -s core-euw2-identity
6753
- command: terraform deploy aws-config-euw2 -s core-euw2-root
68-
- command: terraform deploy aws-config-euw3 -s core-euw3-identity
6954
- command: terraform deploy aws-config-euw3 -s core-euw3-root
70-
- command: terraform deploy aws-config-eun1 -s core-eun1-identity
7155
- command: terraform deploy aws-config-eun1 -s core-eun1-root
72-
- command: terraform deploy aws-config-sae1 -s core-sae1-identity
7356
- command: terraform deploy aws-config-sae1 -s core-sae1-root
7457

7558
deploy/security-hub/step1:

0 commit comments

Comments
 (0)