(AWS) Tagging works with new lambda functions, not existing.
See original GitHub issueThis is a Bug Report
Description
For bug reports:
- What went wrong?
Tagging for lambda functions appears to work at point of function creation only, it isn’t possible to apply tags to existing functions.
- What did you expect should have happened?
Adding tags
to the serverless.yaml file should apply tags to a lambda function; whether it’s new or existing i.e. for when a tag (e.g. team email) needs updating.
- What was the config you used?
functions:
cloudhealth_cmdb_etl:
handler: lambdas/cloudhealth_cmdb_etl.lambda_handler
description: ETL job to blah blah *snip*
tags:
systemCode: cloudhealth-cmdb-etl
environment: p
teamDL: ***oops.... snip***
timeout: 300
events:
- schedule: cron(0 22 * * ? *)
- What stacktrace or error message from your provider did you see?
No error occurs during the stack update, it appears all okay from the cloudformation events.
For feature proposals:
- What is the use case that should be solved. The more detail you describe this in the easier it is to understand for us.
- If there is additional config how would it look
Similar or dependent issues:
- n/a
Additional Data
- Serverless Framework Version you’re using: v1.17.0
- Operating System: darwin ~ our serverless deployments are made via GoCD (version 17.7.0) - link: https://www.gocd.org/
- Node Version: 8.1.4
- Stack Trace: No errors occur that I can see
- Provider Error messages: No errors occur that I can see
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Using tags on Lambda functions - AWS Documentation
Open the Functions page of the Lambda console. · Choose the name of a function. · Choose Configuration, and then choose Tags. ·...
Read more >(AWS) Tagging works with new lambda functions, not ...
Tagging for lambda functions appears to work at point of function creation only, it isn't possible to apply tags to existing functions. What...
Read more >Using tags on Lambda functions - 亚马逊云科技
To add tags to an existing function, use the tag-resource command. To remove tags, use the untag-resource command.
Read more >Tag Your Lambda Functions for Smarter Serverless Applications
Tagging your Lambda functions is a great way to apply structure to deployments as well as utilize them for automation, access control and ......
Read more >AWS Lambda Functions - Serverless Framework
Every AWS Lambda function needs permission to interact with other AWS infrastructure resources within your account. These permissions are set via an AWS...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Incredibly, this is still a problem with 1.78.1 in my CI/CD pipeline. It works fine on my MacBook locally, but fails with the exact same problem mentioned above on my Linux pipeline deployment image. This is such a major headache not being able to add a simple tag…
This is still occurring in version 1.62.0. I’m guessing it is because tags aren’t tied to the function version, so since there is no new function version to push (we intermittently get the error @conradhappeliv reported about a duplicate version), but there are tags to change.
Note about that error: It is intermittent. Retrying the same command can cause serverless just to report that there is nothing new to deploy. It is quite odd that it infers randomly whether there is anything to push, and when it does, it pushes as the exact same function version.
I can try upgrading to 1.65.0, but that isn’t much different, and the release notes don’t look at all related.