Skip to content

scripts: one-time AWS access wizard + first-deploy bootstrap - #63

Merged
xirothedev merged 1 commit into
mainfrom
ci/aws-bootstrap-scripts
Sep 6, 2026
Merged

scripts: one-time AWS access wizard + first-deploy bootstrap#63
xirothedev merged 1 commit into
mainfrom
ci/aws-bootstrap-scripts

Conversation

@xirothedev

Copy link
Copy Markdown
Owner

The gap between "everything LocalStack-side is proven" and a real deploy is AWS admin credentials — which live only in the console. Two scripts close the loop:

scripts/aws/one-time-aws-admin.sh (wizard, run in a terminal): walks the console to create a throwaway temp-bootstrap admin user, captures its keys into an aws profile [profile bootstrap], verifies the account matches 772889137569, captures the budget alarm email into secrets.ALERT_EMAIL (the last unfed value referenced by cd.yml), and leaves a delete-me reminder.

scripts/aws/first-deploy.sh (agent-driven, uses the profile): CDK bootstrap both regions → webdev-network + webdev-oidc (mints the GitHub OIDC provider + webdev-deploy-build/production roles that CI probes proved missing) → ACM cert for webdevstudio.resonance.io.vn with Route53 DNS validation (waits for ISSUED) → webdev-waf → writes /webdev/cloudfront/cert-arn + /webdev/cloudfront/waf-arn SSM params the prod stack reads → stops before the release tag, which stays a human decision.

Idempotent; re-run after any failure. After it finishes: gh workflow run aws-probe.yml should go green, then v0.1.1 deploys for real. Keys deleted afterwards. No secrets in the repo; nothing in CI changes.

@xirothedev
xirothedev merged commit bb8eca0 into main Sep 6, 2026
@xirothedev
xirothedev deleted the ci/aws-bootstrap-scripts branch September 6, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant