Using provider.tags, will,
provides a quick way to tag those resources. All tags specified under this node will be applied to all those API Gateway’s APIs and Lambdas.
So I added to my serverless.yml
provider:
tags:
provTag1: value1
provTag2: value2
then deploy, and was hoping that my API Gateway’s APIs and Lambdas function will all be tagged as such, but when I check, both are not.
I’ve then also tried with stackTags, which is supposed to
cascade down to all resources created in the stack
but not for my API Gateway’s APIs and Lambdas function either.
Update 2:
tried with
functions:
hello:
handler: handler.hello
tags: # will apply to the Lambda, but not API Gateway's API
funcTag1: bar
but it is not showing in my Lambdas function tags.
What I’m missing please?
$ sls --version
Environment: linux, node 16.6.2, framework 3.26.0 (local), plugin 6.2.2, SDK 4.3.2
Framework Core: 3.26.0 (local)
Plugin: 6.2.2
SDK: 4.3.2
Tencent CLI: 3.21.6 (binary)