如何在 serverless.yml 中为 DynamoDb 设置标签

Bal*_*u R 2 amazon-dynamodb aws-lambda serverless-framework

我想为 Dynamo DB 设置标签,我们是否有一个 serverless.yml 配置,就像我们有它的功能一样

functions:
  createUsers:
    tags:
      key: value
Run Code Online (Sandbox Code Playgroud)

小智 5

resources:
  Resources:
    DynamoDbTable:
      Type: 'AWS::DynamoDB::Table'
      DeletionPolicy: Retain
      Properties:

    TableName: 'table'
    AttributeDefinitions:
      -
        AttributeName: id
        AttributeType: S
        KeySchema:
          -
            AttributeName: id
            KeyType: HASH
        ProvisionedThroughput:
          ReadCapacityUnits: 1
          WriteCapacityUnits: 1
        Tags:
            - 
              Key: 'tagKey'
              Value: 'tagValue'
Run Code Online (Sandbox Code Playgroud)