badsyntax/AWS Edge Static Stack
Deploy your static website to the AWS Edge using S3, CloudFront & Lambda@Edge
View on GitHubTrust Signals
- Scorecard Score
- Scorecard 2–4scored Jul 6, 2026
- Maintenance Recency
- Stalelast commit Dec 19, 2021
- License
- MIT
Pinned Snippet
uses: badsyntax/github-action-aws-static-stack@e4b7ea27cefe489428b9cd95b223f06f74b6ef0f # v0.0.9tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| cf-stack-name | The name of the Cloudformation stack to be created. For example: example-com-static-cloudformation-stack | yes | — |
| cf-template | The relative path to the CloudFormation stack template. For example: ./cloudformation/s3bucket_with_cloudfront.yml | yes | — |
| cf-apply-change-set | Whether to apply the CloudFormation ChangeSet (if any) | yes | — |
| token | GitHub Token used for commenting on Pull Requests. Use the default GITHUB_TOKEN from secrets. | yes | — |
| aws-region | The AWS region in which to create the stack. You should set this to: us-east-1 | — | — |
| s3-bucket-name | The name of S3 bucket to be created, to store your static files. Must end with region name, for example: example.com-us-east-1 | yes | — |
| s3-allowed-origins | A list of allowed domains to request resources from S3. For example: https://example.com,https://*.preview.example.com | yes | — |
| cloudfront-root-hosts | A list of hosts assigned to the Root CloudFront distribution. For example: example.com | yes | — |
| cloudfront-preview-hosts | A list of hosts assigned to the Preview CloudFront distribution. For example: *.preview.example.com | yes | — |
| cloudfront-default-root-object | The CloudFront default root object. For example: index.html | yes | — |
| certificate-arn | ARN of the certificate for the root and preview domains. For example: arn:aws:acm:us-east-1:1234567:certificate/123abc-123abc-1234-5678-abcdef | yes | — |
| src-dir | Path to build/out directory that contains the static files. For example: ./out | yes | — |
| static-files-glob | Glob pattern for immutable static files. For example: _next/** | yes | — |
| lambda-version | The lambda version. Required to deploy a new lambda. You must update this if changing the lambda. For example: 1.0.0 | yes | — |
| delete-preview-site-on-pr-close | Whether to delete the preview site on PR close | yes | — |
| comment-template | Path to the Pull Request comment template. For example: .github/preview-site-comment.md | yes | — |
Outputs
no outputs