badsyntax/AWS Edge Static Stack

Deploy your static website to the AWS Edge using S3, CloudFront & Lambda@Edge

View on GitHub

Trust Signals

Scorecard Score
Scorecard 2–4scored Jul 6, 2026
Maintenance Recency
Stalelast commit Dec 19, 2021
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: badsyntax/github-action-aws-static-stack@e4b7ea27cefe489428b9cd95b223f06f74b6ef0f # v0.0.9

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
cf-stack-nameThe name of the Cloudformation stack to be created. For example: example-com-static-cloudformation-stackyes
cf-templateThe relative path to the CloudFormation stack template. For example: ./cloudformation/s3bucket_with_cloudfront.ymlyes
cf-apply-change-setWhether to apply the CloudFormation ChangeSet (if any)yes
tokenGitHub Token used for commenting on Pull Requests. Use the default GITHUB_TOKEN from secrets.yes
aws-regionThe AWS region in which to create the stack. You should set this to: us-east-1
s3-bucket-nameThe name of S3 bucket to be created, to store your static files. Must end with region name, for example: example.com-us-east-1yes
s3-allowed-originsA list of allowed domains to request resources from S3. For example: https://example.com,https://*.preview.example.comyes
cloudfront-root-hostsA list of hosts assigned to the Root CloudFront distribution. For example: example.comyes
cloudfront-preview-hostsA list of hosts assigned to the Preview CloudFront distribution. For example: *.preview.example.comyes
cloudfront-default-root-objectThe CloudFront default root object. For example: index.htmlyes
certificate-arnARN of the certificate for the root and preview domains. For example: arn:aws:acm:us-east-1:1234567:certificate/123abc-123abc-1234-5678-abcdefyes
src-dirPath to build/out directory that contains the static files. For example: ./outyes
static-files-globGlob pattern for immutable static files. For example: _next/**yes
lambda-versionThe lambda version. Required to deploy a new lambda. You must update this if changing the lambda. For example: 1.0.0yes
delete-preview-site-on-pr-closeWhether to delete the preview site on PR closeyes
comment-templatePath to the Pull Request comment template. For example: .github/preview-site-comment.mdyes

no outputs