{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/6651","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/6651/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/6651/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/6651/events","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/6651","id":385977189,"node_id":"MDU6SXNzdWUzODU5NzcxODk=","number":6651,"title":"Support Lambda Layers","user":{"login":"popey456963","id":1338129,"node_id":"MDQ6VXNlcjEzMzgxMjk=","avatar_url":"https://avatars2.githubusercontent.com/u/1338129?v=4","gravatar_id":"","url":"https://api.github.com/users/popey456963","html_url":"https://github.com/popey456963","followers_url":"https://api.github.com/users/popey456963/followers","following_url":"https://api.github.com/users/popey456963/following{/other_user}","gists_url":"https://api.github.com/users/popey456963/gists{/gist_id}","starred_url":"https://api.github.com/users/popey456963/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/popey456963/subscriptions","organizations_url":"https://api.github.com/users/popey456963/orgs","repos_url":"https://api.github.com/users/popey456963/repos","events_url":"https://api.github.com/users/popey456963/events{/privacy}","received_events_url":"https://api.github.com/users/popey456963/received_events","type":"User","site_admin":false},"labels":[{"id":620316241,"node_id":"MDU6TGFiZWw2MjAzMTYyNDE=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/enhancement","name":"enhancement","color":"d4c5f9","default":true},{"id":625892945,"node_id":"MDU6TGFiZWw2MjU4OTI5NDU=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/new-resource","name":"new-resource","color":"d4c5f9","default":false},{"id":794043498,"node_id":"MDU6TGFiZWw3OTQwNDM0OTg=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/labels/service/lambda","name":"service/lambda","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-11-29T23:49:48Z","updated_at":"2018-12-10T14:41:22Z","closed_at":null,"author_association":"NONE","body":"<!--- Please keep this note for the community --->\r\n\r\n### Community Note\r\n\r\n* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request\r\n* Please do not leave \"+1\" or \"me too\" comments, they generate extra noise for issue followers and do not help prioritize the request\r\n* If you are interested in working on this issue or have submitted a pull request, please leave a comment\r\n\r\n<!--- Thank you for keeping this note for the community --->\r\n\r\n### Description\r\n\r\nAWS has recently released a new feature, \"[Lambda Layers](https://aws.amazon.com/blogs/aws/new-for-aws-lambda-use-any-programming-language-and-share-common-components/)\", a way of sharing code between Lambda functions.  It would be useful for Terraform to support this.\r\n\r\n### New or Affected Resource(s)\r\n\r\n* aws_lambda\r\n\r\n### Potential Terraform Configuration\r\n\r\n```hcl\r\n# An implementation would likely have two aspects to it, an addition lambda parameter:\r\n\r\nresource \"aws_lambda_function\" \"example_function\" {\r\n  layers = [\r\n    // reference to layer\r\n    // another reference\r\n  ]\r\n}\r\n\r\n# And the layer type itself\r\n\r\nresource \"aws_lambda_layer\" \"example_layer\" {\r\n  # layer metadata\r\n  layer_name = \"\"\r\n  tags = []\r\n  description = \"\"\r\n\r\n  # location of layer\r\n  s3_bucket = []\r\n  s3_key = []\r\n  s3_object_version = []\r\n}\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/comments/445838619","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/6651#issuecomment-445838619","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/6651","id":445838619,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTgzODYxOQ==","user":{"login":"ampopp04","id":8096596,"node_id":"MDQ6VXNlcjgwOTY1OTY=","avatar_url":"https://avatars1.githubusercontent.com/u/8096596?v=4","gravatar_id":"","url":"https://api.github.com/users/ampopp04","html_url":"https://github.com/ampopp04","followers_url":"https://api.github.com/users/ampopp04/followers","following_url":"https://api.github.com/users/ampopp04/following{/other_user}","gists_url":"https://api.github.com/users/ampopp04/gists{/gist_id}","starred_url":"https://api.github.com/users/ampopp04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ampopp04/subscriptions","organizations_url":"https://api.github.com/users/ampopp04/orgs","repos_url":"https://api.github.com/users/ampopp04/repos","events_url":"https://api.github.com/users/ampopp04/events{/privacy}","received_events_url":"https://api.github.com/users/ampopp04/received_events","type":"User","site_admin":false},"created_at":"2018-12-10T14:41:22Z","updated_at":"2018-12-10T14:41:22Z","author_association":"NONE","body":"If I wanted to deploy a simple AWSLambda-Python37-SciPy1x layer to a python lambda, is there a way to do it within terraform until your enhancement gets pushed? I can look through the docs to see if there is some sort of generic mechanism I can use to call a layer create. Great work by the way!"}}
{"actor":{"display_login":"ampopp04"}}