Skip to content

fix(aws static-site): aws-cli in runner image + honour baseDnsZone#282

Closed
smecsia wants to merge 2 commits into
mainfrom
fix/aws-static-site-cli-and-dnszone
Closed

fix(aws static-site): aws-cli in runner image + honour baseDnsZone#282
smecsia wants to merge 2 commits into
mainfrom
fix/aws-static-site-cli-and-dnszone

Conversation

@smecsia
Copy link
Copy Markdown
Contributor

@smecsia smecsia commented May 20, 2026

No description provided.

universe-ops and others added 2 commits May 21, 2026 01:30
`pkg/clouds/pulumi/aws/static_website.go` shells out to `aws s3 sync`
via Pulumi `local.NewCommand`, but neither the prod nor staging
Dockerfile installed the AWS CLI — every static-site stack run under
the simplecontainer/github-actions image failed with
`/bin/sh: aws: not found`.

Adding the alpine `aws-cli` package (community repo, python-based)
to the runtime layer of both images + extending the build-time
smoke test to cover `aws --version`.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…ured

aws.StaticSiteInput embeds api.StackConfigStatic (which carries Site.
BaseDnsZone) but never exposed an OverriddenBaseZone() method, so the
type assertion in pulumi/deploy.go fell through and the Cloudflare
registrar fell back to the parent stack's default zone. Records
intended for e.g. simple-forge.com landed in the simple-container.com
zone and Cloudflare appended the suffix → simple-forge.com.simple-
container.com.

GCP, Lambda and ECS Fargate inputs already implement the interface;
this just restores parity.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@smecsia smecsia requested a review from Cre-eD as a code owner May 20, 2026 22:32
@smecsia
Copy link
Copy Markdown
Contributor Author

smecsia commented May 20, 2026

Closing per request — branch kept for manual PR.

@smecsia smecsia closed this May 20, 2026
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.

2 participants