-
Notifications
You must be signed in to change notification settings - Fork 0
chore: deploy to AWS #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR sets up AWS infrastructure using Pulumi to deploy a static site with S3 and CloudFront, and adds a GitHub Actions workflow to automate deployments on pushes to the master branch.
- Configures S3 bucket, CloudFront distribution with Origin Access Control, optional ACM certificate provisioning, and Route53 DNS records
- Creates IAM role with OIDC provider for GitHub Actions authentication
- Adds deployment workflow that generates the static site and syncs to S3 with CloudFront cache invalidation
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| infra/index.ts | Core Pulumi infrastructure code defining S3, CloudFront, ACM, Route53, and IAM resources |
| infra/package.json | Project dependencies including Pulumi and AWS SDK packages |
| infra/tsconfig.json | TypeScript compiler configuration for the infrastructure code |
| infra/Pulumi.yaml | Pulumi project configuration specifying runtime and entry point |
| infra/Pulumi.dev.yaml | Development stack configuration with AWS region and project-specific settings |
| infra/.gitignore | Ignores Pulumi state directory from version control |
| infra/README.md | Documentation for infrastructure setup, deployment, and CloudFront logging configuration |
| infra/scripts/enable-cloudfront-logging.mjs | Script to configure CloudFront access logging with S3 bucket setup |
| .github/workflows/deploy.yml | GitHub Actions workflow for automated static site deployment |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| pulumi config set githubOwner projectM-visualizer | ||
| pulumi config set githubRepo projectm-visualizer.org | ||
| pulumi config set githubRefs '["ref:refs/heads/master"]' | ||
| # Allow additional refs as needed, for example: | ||
| pulumi config set githubRefs '["ref:refs/heads/master","ref:refs/heads/*","ref:refs/tags/*","ref:refs/pull/*"]' | ||
| pulumi config set aws:region your-app-region |
Copilot
AI
Oct 22, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent indentation in the code block. Lines 28-30 have extra leading spaces compared to line 27, which makes the commands appear misaligned. Ensure all lines have consistent indentation (no leading spaces after the newline).
| pulumi config set githubOwner projectM-visualizer | |
| pulumi config set githubRepo projectm-visualizer.org | |
| pulumi config set githubRefs '["ref:refs/heads/master"]' | |
| # Allow additional refs as needed, for example: | |
| pulumi config set githubRefs '["ref:refs/heads/master","ref:refs/heads/*","ref:refs/tags/*","ref:refs/pull/*"]' | |
| pulumi config set aws:region your-app-region | |
| pulumi config set githubOwner projectM-visualizer | |
| pulumi config set githubRepo projectm-visualizer.org | |
| pulumi config set githubRefs '["ref:refs/heads/master"]' | |
| # Allow additional refs as needed, for example: | |
| pulumi config set githubRefs '["ref:refs/heads/master","ref:refs/heads/*","ref:refs/tags/*","ref:refs/pull/*"]' | |
| pulumi config set aws:region your-app-region |
| pulumi config set githubRefs '["ref:refs/heads/master"]' | ||
| # Allow additional refs as needed, for example: | ||
| pulumi config set githubRefs '["ref:refs/heads/master","ref:refs/heads/*","ref:refs/tags/*","ref:refs/pull/*"]' | ||
| pulumi config set aws:region your-app-region |
Copilot
AI
Oct 22, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 33 has inconsistent indentation with extra leading spaces. This should align with the other commands in the code block to maintain consistency.
| pulumi config set aws:region your-app-region | |
| pulumi config set aws:region your-app-region |
AWS infra is configured with Pulumi (typescript that compiles to terraform)
Generates static site and pushes to the S3 bucket on push to master
Can configure DNS to point the domain at it