Skip to content

Commit 3702c66

Browse files
Benbentwogithub-actions[bot]
authored andcommitted
(github actions) generated latest snippets
1 parent 1075d53 commit 3702c66

File tree

7 files changed

+63
-32
lines changed

7 files changed

+63
-32
lines changed

examples/snippets/.claude/skills/developing-components/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ components:
194194

195195
Stack files in `stacks/orgs/acme/` mirror the AWS account structure:
196196

197-
- `orgs/acme/core/` - Core accounts (root, audit, security, identity, network, dns, auto, artifacts)
197+
- `orgs/acme/core/` - Core accounts (root, audit, security, network, auto, artifacts)
198198
- `orgs/acme/plat/` - Platform accounts (sandbox, dev, staging, prod)
199199

200200
Within each stage, organized by region:

examples/snippets/.claude/skills/developing-stacks/SKILL.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ stacks/
3030
│ │ ├── auto/ # Automation account
3131
│ │ ├── artifacts/ # Artifacts account (ECR, S3)
3232
│ │ ├── audit/ # Audit/logging account
33-
│ │ ├── dns/ # DNS account
34-
│ │ ├── network/ # Network account (TGW, VPN)
33+
│ │ ├── network/ # Network account (TGW, VPN, DNS)
3534
│ │ └── security/ # Security account
3635
│ └── plat/ # Platform tenant (workloads)
3736
│ ├── _defaults.yaml # Tenant defaults (tenant: plat)

examples/snippets/CLAUDE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# CLAUDE.md
22

33
AWS infrastructure repository using Cloud Posse reference architecture with Atmos and OpenTofu. Manages multiple AWS
4-
accounts across core (root, audit, security, identity, network, dns, auto, artifacts) and platform (sandbox, dev,
5-
staging, prod) tenants.
4+
accounts across core (root, audit, security, network, auto, artifacts) and platform (sandbox, dev, staging, prod)
5+
tenants.
66

77
## Commands
88

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

Lines changed: 57 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# - deploy/tfstate: Deploy Terraform state backend
1818
# - deploy/organization: Create AWS Organization
1919
# - deploy/accounts: Provision AWS accounts
20-
# - deploy/account-settings: Configure account settings
20+
# - deploy/aws-account-settings: Configure account settings
2121
# - deploy/cloudtrail: Enable CloudTrail logging
2222
# - deploy/ecr: Deploy ECR registry
2323
#
@@ -29,17 +29,24 @@ workflows:
2929
- command: workflow init/tfstate -f quickstart/foundation/accounts
3030
- command: workflow deploy/tfstate -f quickstart/foundation/accounts
3131
- command: workflow deploy/organization -f quickstart/foundation/accounts
32+
- command: workflow deploy/organizational-units -f quickstart/foundation/accounts
3233
- command: workflow deploy/accounts -f quickstart/foundation/accounts
33-
- command: workflow deploy/account-settings -f quickstart/foundation/accounts
34+
- command: workflow deploy/scps -f quickstart/foundation/accounts
35+
- command: workflow deploy/aws-account-settings -f quickstart/foundation/accounts
36+
- command: workflow deploy/budgets -f quickstart/foundation/accounts
3437
- command: workflow deploy/cloudtrail -f quickstart/foundation/accounts
3538
- command: workflow deploy/ecr -f quickstart/foundation/accounts
3639

3740
vendor:
3841
description: Vendor accounts layer components.
3942
steps:
40-
- command: vendor pull --component account
43+
- command: vendor pull --component aws-organization
44+
- command: vendor pull --component aws-organizational-unit
45+
- command: vendor pull --component aws-account
46+
- command: vendor pull --component aws-scp
47+
- command: vendor pull --component aws-budget
4148
- command: vendor pull --component account-quotas
42-
- command: vendor pull --component account-settings
49+
- command: vendor pull --component aws-account-settings
4350
- command: vendor pull --component cloudtrail
4451
- command: vendor pull --component cloudtrail-bucket
4552
- command: vendor pull --component ecr
@@ -62,29 +69,61 @@ workflows:
6269
description: |
6370
Deploy the AWS Organization. This is required before finishing the root account requirements.
6471
steps:
65-
- command: terraform deploy account -target="aws_organizations_organization.this[0]" -s core-gbl-root
72+
- command: terraform deploy aws-organization -s core-gbl-root
6673
- command: aws ram enable-sharing-with-aws-organization
6774
type: shell
6875

76+
deploy/organizational-units:
77+
description: Deploy Organizational Units
78+
steps:
79+
- command: terraform deploy aws-organizational-unit/core -s core-gbl-root
80+
- command: terraform deploy aws-organizational-unit/plat -s core-gbl-root
81+
6982
deploy/accounts:
7083
description: Deploys all AWS Organization accounts
7184
steps:
72-
- command: terraform apply account -s core-gbl-root
85+
- command: terraform deploy aws-account/core-artifacts -s core-gbl-root
86+
- command: terraform deploy aws-account/core-audit -s core-gbl-root
87+
- command: terraform deploy aws-account/core-auto -s core-gbl-root
88+
- command: terraform deploy aws-account/core-network -s core-gbl-root
89+
- command: terraform deploy aws-account/core-security -s core-gbl-root
90+
- command: terraform deploy aws-account/plat-dev -s core-gbl-root
91+
- command: terraform deploy aws-account/plat-sandbox -s core-gbl-root
92+
- command: terraform deploy aws-account/plat-staging -s core-gbl-root
93+
- command: terraform deploy aws-account/plat-prod -s core-gbl-root
94+
95+
deploy/scps:
96+
description: Deploy Service Control Policies
97+
steps:
98+
- command: terraform deploy aws-scp/deny-leaving-organization -s core-gbl-root
7399

74-
deploy/account-settings:
100+
deploy/aws-account-settings:
75101
description: Apply AWS Account settings for best practices.
76102
steps:
77-
- command: terraform deploy account-settings -s core-gbl-artifacts
78-
- command: terraform deploy account-settings -s core-gbl-audit
79-
- command: terraform deploy account-settings -s core-gbl-auto
80-
- command: terraform deploy account-settings -s core-gbl-dns
81-
- command: terraform deploy account-settings -s core-gbl-network
82-
- command: terraform deploy account-settings -s core-gbl-root
83-
- command: terraform deploy account-settings -s core-gbl-security
84-
- command: terraform deploy account-settings -s plat-gbl-dev
85-
- command: terraform deploy account-settings -s plat-gbl-prod
86-
- command: terraform deploy account-settings -s plat-gbl-sandbox
87-
- command: terraform deploy account-settings -s plat-gbl-staging
103+
- command: terraform deploy aws-account-settings -s core-gbl-artifacts
104+
- command: terraform deploy aws-account-settings -s core-gbl-audit
105+
- command: terraform deploy aws-account-settings -s core-gbl-auto
106+
- command: terraform deploy aws-account-settings -s core-gbl-network
107+
- command: terraform deploy aws-account-settings -s core-gbl-root
108+
- command: terraform deploy aws-account-settings -s core-gbl-security
109+
- command: terraform deploy aws-account-settings -s plat-gbl-dev
110+
- command: terraform deploy aws-account-settings -s plat-gbl-prod
111+
- command: terraform deploy aws-account-settings -s plat-gbl-sandbox
112+
- command: terraform deploy aws-account-settings -s plat-gbl-staging
113+
114+
deploy/budgets:
115+
description: Deploy budgets to all accounts
116+
steps:
117+
- command: terraform deploy aws-budget -s core-gbl-root
118+
- command: terraform deploy aws-budget -s core-gbl-artifacts
119+
- command: terraform deploy aws-budget -s core-gbl-audit
120+
- command: terraform deploy aws-budget -s core-gbl-auto
121+
- command: terraform deploy aws-budget -s core-gbl-network
122+
- command: terraform deploy aws-budget -s core-gbl-security
123+
- command: terraform deploy aws-budget -s plat-gbl-dev
124+
- command: terraform deploy aws-budget -s plat-gbl-sandbox
125+
- command: terraform deploy aws-budget -s plat-gbl-staging
126+
- command: terraform deploy aws-budget -s plat-gbl-prod
88127

89128
deploy/cloudtrail:
90129
description: Start AWS Cloudtrail in audit and root accounts to track changes across the org.

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ workflows:
8181
- command: terraform deploy iam-role/planner -s core-gbl-audit
8282
- command: terraform deploy iam-role/terraform -s core-gbl-auto
8383
- command: terraform deploy iam-role/planner -s core-gbl-auto
84-
- command: terraform deploy iam-role/terraform -s core-gbl-dns
85-
- command: terraform deploy iam-role/planner -s core-gbl-dns
8684
- command: terraform deploy iam-role/terraform -s core-gbl-network
8785
- command: terraform deploy iam-role/planner -s core-gbl-network
8886
- command: terraform deploy iam-role/terraform -s core-gbl-security
@@ -107,7 +105,6 @@ workflows:
107105
- command: terraform deploy github-oidc-provider -s core-gbl-artifacts
108106
- command: terraform deploy github-oidc-provider -s core-gbl-audit
109107
- command: terraform deploy github-oidc-provider -s core-gbl-auto
110-
- command: terraform deploy github-oidc-provider -s core-gbl-dns
111108
- command: terraform deploy github-oidc-provider -s core-gbl-network
112109
- command: terraform deploy github-oidc-provider -s core-gbl-security
113110
# Platform accounts

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ workflows:
7171
- command: terraform deploy datadog-configuration -s core-gbl-artifacts
7272
- command: terraform deploy datadog-configuration -s core-gbl-audit
7373
- command: terraform deploy datadog-configuration -s core-gbl-auto
74-
- command: terraform deploy datadog-configuration -s core-gbl-dns
7574
- command: terraform deploy datadog-configuration -s core-gbl-network
7675
- command: terraform deploy datadog-configuration -s core-gbl-security
7776
- command: terraform deploy datadog-configuration -s plat-gbl-sandbox
@@ -85,7 +84,6 @@ workflows:
8584
- command: terraform deploy datadog-integration -s core-gbl-artifacts
8685
- command: terraform deploy datadog-integration -s core-gbl-audit
8786
- command: terraform deploy datadog-integration -s core-gbl-auto
88-
- command: terraform deploy datadog-integration -s core-gbl-dns
8987
- command: terraform deploy datadog-integration -s core-gbl-network
9088
- command: terraform deploy datadog-integration -s core-gbl-security
9189
- command: terraform deploy datadog-integration -s plat-gbl-sandbox
@@ -99,7 +97,6 @@ workflows:
9997
# - command: terraform deploy datadog-logs-archive -s core-gbl-artifacts
10098
# - command: terraform deploy datadog-logs-archive -s core-gbl-audit
10199
# - command: terraform deploy datadog-logs-archive -s core-gbl-auto
102-
# - command: terraform deploy datadog-logs-archive -s core-gbl-dns
103100
# - command: terraform deploy datadog-logs-archive -s core-gbl-network
104101
# - command: terraform deploy datadog-logs-archive -s core-gbl-security
105102
# - command: terraform deploy datadog-logs-archive -s plat-gbl-sandbox
@@ -122,7 +119,6 @@ workflows:
122119
- command: terraform deploy datadog-lambda-forwarder -s core-use1-artifacts
123120
- command: terraform deploy datadog-lambda-forwarder -s core-use1-audit
124121
- command: terraform deploy datadog-lambda-forwarder -s core-use1-auto
125-
- command: terraform deploy datadog-lambda-forwarder -s core-use1-dns
126122
- command: terraform deploy datadog-lambda-forwarder -s core-use1-network
127123
- command: terraform deploy datadog-lambda-forwarder -s core-use1-security
128124
- command: terraform deploy datadog-lambda-forwarder -s plat-use1-sandbox

examples/snippets/stacks/workflows/quickstart/network/network.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ workflows:
9090
- command: echo 'Creating primary dns zones'
9191
type: shell
9292
name: primary
93-
- command: terraform deploy dns-primary -s core-gbl-dns
93+
- command: terraform deploy dns-primary -s core-gbl-network
9494
- command: terraform deploy dns-primary -s plat-gbl-dev
9595
- command: terraform deploy dns-primary -s plat-gbl-staging
9696
- command: terraform deploy dns-primary -s plat-gbl-prod
@@ -114,7 +114,7 @@ workflows:
114114
terraform workspace select $1 > /dev/null
115115
terraform output -json zones
116116
}
117-
for s in core-gbl-dns plat-gbl-{dev,staging,prod,sandbox} ; do
117+
for s in core-gbl-network plat-gbl-{dev,staging,prod,sandbox} ; do
118118
output-dns $s
119119
done | jq 'to_entries[] | { (.key) : .value.name_servers }'
120120

0 commit comments

Comments
 (0)