我想为Dynamo DB设置标签,我们是否有像serverless那样的无服务器配置
functions:
createUsers:
tags:
key: value
答案 0 :(得分:1)
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'