Skip to content

Conversation

@revmischa
Copy link
Member

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

Copy link

Copilot AI left a 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.

Comment on lines +28 to +33
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
Copy link

Copilot AI Oct 22, 2025

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).

Suggested change
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

Copilot uses AI. Check for mistakes.
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
Copy link

Copilot AI Oct 22, 2025

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.

Suggested change
pulumi config set aws:region your-app-region
pulumi config set aws:region your-app-region

Copilot uses AI. Check for mistakes.
@revmischa revmischa merged commit 2230098 into master Oct 25, 2025
2 checks passed
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