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

Use the builtin Terraform behaviour for updating Lambdas #434

Merged
merged 1 commit into from
Jun 21, 2017

Conversation

alexwlchan
Copy link
Contributor

@alexwlchan alexwlchan commented Jun 21, 2017

What is this PR trying to achieve?

Rather than doing our homebrew tainting of individual Lambdas, use the hash of the ZIP file and update the Lambda if it changes. It turns out this is indeed possible with Terraform, but it's somewhat obliquely documented: hashicorp/terraform#3825

This should resolve the issues with Lambda triggers being lost, because the Lambda is only updated, not deleted every time.

Resolves #413.

Who is this change for?

Developers who don’t want unreliable infrastructure.

Have the following been considered/are they needed?

  • Run terraform apply.

Rather than doing our homebrew tainting of individual Lambdas,
use the hash of the ZIP file and update the Lambda if it changes.
It turns out this is indeed possible with Terraform, but it's
somewhat obliquely documented:

hashicorp/terraform#3825

This should resolve the issues with Lambda triggers being lost,
because the Lambda is only updated, not deleted every time.
@alexwlchan alexwlchan requested review from kenoir and alicefuzier June 21, 2017 15:35
Copy link
Contributor

@kenoir kenoir left a comment

Choose a reason for hiding this comment

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

🔴 > 🍏 = 👍

@kenoir kenoir merged commit bf9a9c4 into master Jun 21, 2017
@kenoir kenoir deleted the pull-the-lambda-trigger branch June 21, 2017 15:46
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.

Investigate removal of lambda triggers ...
2 participants