howdio / terraform-aws-lambda Goto Github PK
View Code? Open in Web Editor NEWTerraform module which packages and creates Lambda functions on AWS
Home Page: https://registry.terraform.io/modules/howdio/lambda/aws
License: MIT License
Terraform module which packages and creates Lambda functions on AWS
Home Page: https://registry.terraform.io/modules/howdio/lambda/aws
License: MIT License
I'm using Terraform 0.11.13. I've used this module to setup a lambda consisting of a single Python file and several support libraries. My code looks like:
module "lambda" {
source = "howdio/lambda/aws"
name = "lmb-inf-${var.name_environment}-graf-json-keen-${var.name_region}"
description = "${local.description-inf-graf-json-keen}"
runtime = "python3.6"
package_path = "lmb-inf-graf-json-keen.py"
package_include_paths = [
"../../../../shared/requests",
"../../../../shared/http_basic_auth"
]
handler = "lmb-inf-graf-json-keen.lambda_handler"
tags {
"cc:environment" = "${var.cc_environment}"
}
}
My problem is that every time the source code in this repo changes Terraform thinks the lambda has changed, even though the Python file and the supporting libraries have not changed.
As stated in the doku this resource will remove all other roles or users from the provided policy. Thats extremely dangerous!!
Hi,
noticed this repo is about 8 month old, just wonder if a PR about upgrade 0.12.0 is welcome and is this repo still active ?
thanks a lot
In main.tf#L7 you are trying to set the role to the provided one or create a new one.
Unfortunately, if aws_iam_role.lambda
has no elements join
will return an empty string since the first parameter is only the separator.
You should use something like that instead:
role = "${join("", concat(list(var.role), aws_iam_role.lambda.*.arn))}"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.