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

feat: Deployment options. Use pre-built package by default. #40

Merged
merged 2 commits into from
Feb 10, 2023

Conversation

baolsen
Copy link
Contributor

@baolsen baolsen commented Feb 9, 2023

No description provided.

@baolsen baolsen force-pushed the feat-local-build branch 4 times, most recently from 2fcff34 to 6156c71 Compare February 9, 2023 13:04
# Include main requirements
-r ../costnotifier/requirements.txt

# Additional packages to install when doing testing
Copy link
Contributor Author

@baolsen baolsen Feb 9, 2023

Choose a reason for hiding this comment

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

One nice thing with this change.
Only install boto3 when doing tests. It is already available within the lambda environment :D

@@ -36,16 +57,21 @@ module "billing_notifier_lambda" {
function_name = var.naming_prefix
description = var.lambda_description

handler = "handler.report_cost"
handler = "app.lambda_handler"
runtime = var.runtime
timeout = 300

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing this means we no longer depend on the remote build environment

@baolsen
Copy link
Contributor Author

baolsen commented Feb 9, 2023

I'll also do some testing in TF in our internal environments to check the lambda is still working :)
Will report back.

@baolsen
Copy link
Contributor Author

baolsen commented Feb 9, 2023

Tagged with 0.42.0 for testing and rolled to our root account

@baolsen
Copy link
Contributor Author

baolsen commented Feb 10, 2023

Tests passed, merging.

@baolsen baolsen merged commit 94716bf into main Feb 10, 2023
@baolsen baolsen deleted the feat-local-build branch February 10, 2023 05:51
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