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 correct hash to check lambda source zip in Lambda example #6520

Merged
merged 1 commit into from
Nov 19, 2018

Conversation

flauflauf
Copy link

Without this change, running terraform apply twice in the lambda example produces the following output:

$ terraform apply
data.archive_file.zip: Refreshing state...
data.aws_iam_policy_document.policy: Refreshing state...
aws_iam_role.iam_for_lambda: Refreshing state... (ID: iam_for_lambda)
aws_lambda_function.lambda: Refreshing state... (ID: hello_lambda)

An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  ~ aws_lambda_function.lambda
      last_modified:    "2018-11-19T20:07:09.725+0000" => <computed>
      source_code_hash: "gg0jKs+fIU7fAXzl8ctqRMyVOqy2DZ3EpHMxpy+LCew=" => "3214d758ed7b48f0a982c9624c4ab126d91b49de"


Plan: 0 to add, 1 to change, 0 to destroy.

Output with PR:

terraform apply
data.archive_file.zip: Refreshing state...
data.aws_iam_policy_document.policy: Refreshing state...
aws_iam_role.iam_for_lambda: Refreshing state... (ID: iam_for_lambda)
aws_lambda_function.lambda: Refreshing state... (ID: hello_lambda)

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

@ghost ghost added the size/XS Managed by automation to categorize the size of a PR. label Nov 19, 2018
@bflad bflad added documentation Introduces or discusses updates to documentation. service/lambda Issues and PRs that pertain to the lambda service. labels Nov 19, 2018
@bflad bflad added this to the v1.46.0 milestone Nov 19, 2018
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

Thanks @flauflauf! 🚀

@bflad bflad merged commit 255af2d into hashicorp:master Nov 19, 2018
@ghost
Copy link

ghost commented Apr 2, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. service/lambda Issues and PRs that pertain to the lambda service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants