terraform-aws-modules/terraform-aws-lambda

Allow dynamic tagging for existing lambda resources

moranimu opened this issue · 12 comments

I was trying to add tags to an existing lambda function managed by Terraform.
During my trials, I saw that it is even impossible to modify a tag.

Having the ability to update/add tags would allow us to better monitor lambdas execution over time and react according to the values of the tags

Currently we are using version 4.2.1 of this module

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

Any update on this issue?

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

Any update on this issue?

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

Any update on this issue?

This issue has been automatically marked as stale because it has been open 30 days
with no activity. Remove stale label or comment or this issue will be closed in 10 days

Any update on this issue?

You should be able to specify function_tags and/or tags as shown in the example - https://github.com/terraform-aws-modules/terraform-aws-lambda/blob/master/examples/complete/main.tf#L174-L180

This feature has been supported since day one.

@antonbabenko we are using tags, I was looking for a way to modify the existing tags.

If the function was created using this module, you should be able to adjust tags. If not, you can import it or recreate using this module.

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.