{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/terraform/issues/7782","repository_url":"https://api.github.com/repos/hashicorp/terraform","labels_url":"https://api.github.com/repos/hashicorp/terraform/issues/7782/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/terraform/issues/7782/comments","events_url":"https://api.github.com/repos/hashicorp/terraform/issues/7782/events","html_url":"https://github.com/hashicorp/terraform/issues/7782","id":167167380,"number":7782,"title":"aws_lambda_function doesn't create lambda","user":{"login":"molten-io","id":20380814,"avatar_url":"https://avatars.githubusercontent.com/u/20380814?v=3","gravatar_id":"","url":"https://api.github.com/users/molten-io","html_url":"https://github.com/molten-io","followers_url":"https://api.github.com/users/molten-io/followers","following_url":"https://api.github.com/users/molten-io/following{/other_user}","gists_url":"https://api.github.com/users/molten-io/gists{/gist_id}","starred_url":"https://api.github.com/users/molten-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/molten-io/subscriptions","organizations_url":"https://api.github.com/users/molten-io/orgs","repos_url":"https://api.github.com/users/molten-io/repos","events_url":"https://api.github.com/users/molten-io/events{/privacy}","received_events_url":"https://api.github.com/users/molten-io/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/terraform/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/terraform/labels/provider/aws","name":"provider/aws","color":"bfdadc"}],"state":"closed","locked":false,"assignee":{"login":"stack72","id":227823,"avatar_url":"https://avatars.githubusercontent.com/u/227823?v=3","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false},"assignees":[{"login":"stack72","id":227823,"avatar_url":"https://avatars.githubusercontent.com/u/227823?v=3","gravatar_id":"","url":"https://api.github.com/users/stack72","html_url":"https://github.com/stack72","followers_url":"https://api.github.com/users/stack72/followers","following_url":"https://api.github.com/users/stack72/following{/other_user}","gists_url":"https://api.github.com/users/stack72/gists{/gist_id}","starred_url":"https://api.github.com/users/stack72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stack72/subscriptions","organizations_url":"https://api.github.com/users/stack72/orgs","repos_url":"https://api.github.com/users/stack72/repos","events_url":"https://api.github.com/users/stack72/events{/privacy}","received_events_url":"https://api.github.com/users/stack72/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-07-23T04:46:19Z","updated_at":"2016-07-27T15:47:25Z","closed_at":"2016-07-27T15:47:25Z","body":"Running aws_lambda_function reports successful resource creation, but resource is not shown in the \"show\" and arn is not available for subsequent resource creations.\r\n\r\n### Terraform Version\r\nv0.6.16\r\n\r\n### Affected Resource(s)\r\naws_lambda_function (java8)\r\n\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\nvariable \"file\" {\r\n\tdefault = \"../target/test-0.0.1-SNAPSHOT.jar\"\r\n}\r\n\r\nvariable \"region\" {\r\n\tdefault = \"ap-southeast-2\"\r\n}\r\n\r\nprovider \"aws\" {\r\n\tregion = \"${var.region}\"\r\n}\r\n\r\nresource \"aws_iam_role\" \"iam_for_lambda\" {\r\n    name = \"iam_for_lambda\"\r\n    assume_role_policy = <<EOF\r\n{\r\n  \"Version\": \"2012-10-17\",\r\n  \"Statement\": [\r\n    {\r\n      \"Action\": \"sts:AssumeRole\",\r\n      \"Principal\": {\r\n        \"Service\": \"lambda.amazonaws.com\"\r\n      },\r\n      \"Effect\": \"Allow\",\r\n      \"Sid\": \"\"\r\n    }\r\n  ]\r\n}\r\nEOF\r\n}\r\n\r\nresource \"aws_lambda_function\" \"test_lambda\" {\r\n    filename = \"${var.file}\"\r\n    function_name = \"Hello\"\r\n    role = \"${aws_iam_role.iam_for_lambda.arn}\"\r\n    handler = \"LambdaFunctionHandler.handleRequest\"\r\n\truntime = \"java8\"\r\n}\r\n```\r\n\r\n### Expected Behavior\r\nEXpected lambda to be created and \"terraform show\" confirming that.\r\n\r\n### Actual Behavior\r\nOnly aws_iam_role is created\r\n\r\n### Steps to Reproduce\r\n1. `terraform apply` - reports successful creation of the lambda\r\n2. `terraform show` - only shows aws_iam_role being created\r\n"}}
{"actor":{"display_login":"stack72"}}