aws-samples / aws-samples/sample-autonomous-cloud-coding-agents

fix(bootstrap): mise //cdk:bootstrap silently no-ops on an already-bootstrapped account

Aperta
#701 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
143
Fork
46
Merge medio
3g 10h
PR unite (30g)
24

Descrizione

### Observed (live, us-east-1, 2026-07-31)

On an account with a pre-existing default `CDKToolkit` stack, `mise //cdk:bootstrap` (and the underlying `npx cdk bootstrap --template bootstrap/bootstrap-template.yaml`) **exits 0 without applying the ABCA template**: `BootstrapVariant` stays `AWS CDK: Default Resources`, the CloudFormation execution role keeps `AdministratorAccess`, and the five ABCA scoped policies are never attached. Because the command reports success, the operator has no signal, and the condition recurs on every retry.

Workaround that succeeded during the ADR-021 P1 verification run: pass `--force`.

### Proposal

- Add `--force` to the bootstrap task (or detect the variant mismatch and fail loudly with the `--force` remedy)
- Document the already-bootstrapped-account case in DEPLOYMENT_ROLES.md alongside the existing `ComputeTypes` parameter guidance

Found during the ADR-021 P1 live verification (evidence in the #645 verification findings). Refs #645.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dall'attività mise //cdk:bootstrap ed esamina bootstrap/bootstrap-template.yaml, quindi leggi DEPLOYMENT_ROLES.md per consultare le indicazioni esistenti su ComputeTypes. Riproduci il caso con un account CDKToolkit di cui sia già stato eseguito il bootstrap e verifica che il template ABCA venga applicato con --force, oppure che una mancata corrispondenza della variante fallisca con una soluzione chiara; documenta il caso in DEPLOYMENT_ROLES.md.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, typescript
Ambito
cloud, devops, infrastructure
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
65/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.