This has a couple of problems:
1) The attributes list is missing from the resultant set of tags.
2) The requirement of passing an explicit tags attribute is not how other CloudPosse modules work.
Outcome
The aws_lambda_function resource is tagged with the implicit tags passed in via context.
Tags from the tags variable are still present, but are now merged with the tags from context.
This module follows the convetion of other CloudPosse modules.
People used to CloudPosse modules will have an easier time using this module.
What
Use
tags = module.this.tags
on theaws_lambda_function
resource.Why
Prior to this, the
aws_lambda_function
resource was not getting tagged at all when passing just the null/label context into the module.For example, this would end up with a completely untagged Lambda function even though I am passing the context from a standard null/label declaration:
To get any tags on the lambda, the
tags
attribute must be used:This has a couple of problems: 1) The
attributes
list is missing from the resultant set of tags. 2) The requirement of passing an explicittags
attribute is not how other CloudPosse modules work.Outcome
aws_lambda_function
resource is tagged with the implicit tags passed in viacontext
.tags
variable are still present, but are now merged with the tags fromcontext
.