Skip to content
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

Refactor Lambda@Edge for spa-s3-cloudfront #978

Merged
merged 10 commits into from
Feb 8, 2024
Merged

Conversation

milldr
Copy link
Member

@milldr milldr commented Feb 7, 2024

what

  • Refactored the spa-s3-cloudfront component
  • Remove all Lambda@Edge submodules; replaced by a single file lambda_edge.tf

why

  • We've introduced the paywall lambda@edge functions. However, these functions are specific to the cloudposse docs authentication process and should not be included with other spa deployments.
  • The submodules for lambda@edge overly complicated the resources required. Instead, we can use a single module and pass the functions we need
  • We are not converting these functions to CloudFront Functions at this time. We have another follow-up, backlog task for that effort. Not critical at the moment

references

@milldr milldr marked this pull request as ready for review February 7, 2024 21:39
@milldr milldr requested review from a team as code owners February 7, 2024 21:39
Copy link
Member

@aknysh aknysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, a few nitpicks

@milldr milldr merged commit 7b2f215 into main Feb 8, 2024
5 checks passed
@milldr milldr deleted the refactor-spa-s3-cloudfront branch February 8, 2024 17:30
goruha pushed a commit to cloudposse-terraform-components/aws-spa-s3-cloudfront that referenced this pull request Nov 27, 2024
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.

3 participants