Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resource "aws_lambda_function" "foo" {
- count = "2"
- function_name = "foo-${title(var.environment)}"
- handler = "main"
- description = "a foo test"
- role = "arn:aws:iam::12345:role/foo-role" #Change me!
- runtime = "go1.x"
- timeout = "300"
- reserved_concurrent_executions = "100"
- tags {
- environment = "${title(var.environment)}" #fine
- # name = "${aws_lambda_function.foo.function_name}" #Doesnt work, inits, but self reference not allowed..
- # name = "${self.function_name}" #will not init, because cannot contain self reference of course
- name = "foo-${title(var.environment)}" #does work
- Environment = "${var.environment_tag}" #works fine with variables
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement