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

Support source_zip as source for Lambda@Edge submodule #262

Merged
merged 10 commits into from
Mar 22, 2023
Merged

Conversation

zdmytriv
Copy link
Contributor

@zdmytriv zdmytriv commented Mar 20, 2023

what

Added support source_zip option for lambda@edge functions.

why

There are cases when we need to send the archive as a source for Lambda@Edge. For example, include node_modules for node js projects.

So at the moment, this module supports 3 types of sources for Cloudfront Lambda@Edge:

  • source - just a string with source code that is going to be saved to a file and archived by this module
  • source_dir - path to the directory that contains a few files and/or subdirectories that are going to be archived by this module
  • source_zip - path to a single zip file. This is useful when Lambda@Edge has a lot of dependencies for example in the case of NodeJS - node_modules directory

See examples/complete for usage examples.

references

@zdmytriv zdmytriv requested review from a team as code owners March 20, 2023 11:36
@zdmytriv zdmytriv requested review from jamengual and joe-niland and removed request for a team March 20, 2023 11:36
Zinovii Dmytriv and others added 2 commits March 20, 2023 13:47
@zdmytriv
Copy link
Contributor Author

/test all

@zdmytriv
Copy link
Contributor Author

/test all

@zdmytriv
Copy link
Contributor Author

/test all

@zdmytriv
Copy link
Contributor Author

/test all

Zinovii Dmytriv added 2 commits March 21, 2023 17:37
@zdmytriv
Copy link
Contributor Author

/test all

@zdmytriv
Copy link
Contributor Author

/test all

@zdmytriv
Copy link
Contributor Author

/test all

@zdmytriv zdmytriv changed the title Support source_zip Support source_zip as source for Lambda@Edge submodule Mar 22, 2023
@zdmytriv zdmytriv merged commit 379cb1a into master Mar 22, 2023
@zdmytriv zdmytriv deleted the source-zip branch March 22, 2023 14:37
abeluck pushed a commit to abeluck/terraform-aws-cloudfront-s3-cdn that referenced this pull request Aug 11, 2023
)

Support `source_zip` as source for Lambda@Edge submodule
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.

Lambda@Edge with pre-provided zips
3 participants