AWS resources tagging using Serverless framework

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)

you try with stackTags?
here a little example

provider:
name: aws
runtime: nodejs14.x
stage: ${opt:stage, self:custom.default_stage}
region: us-east-1
iamRoleStatements:
- Effect: Allow
Action:
- sqs:ReceiveMessage
- sqs:SendMessage
- sqs:DeleteMessage
Resource: !Sub arn:aws:sqs:us-east-1:${AWS::AccountId}:earnix-sqs-${self:provider.stage}
- Effect: Allow
Action:
- lambda:InvokeFunction
Resource: ‘arn:aws:lambda:us-east-1:xxxxxxx:function:xxxx’
- Effect: Allow
Action:
- lambda:*
Resource: ‘arn:aws:lambda:us-east-1:xxxxxxx:xxxxxs’

stackTags:
firstTag: xxxx
secondTag: xxxx