资源 SecretsManager 的资源属性 MySecretA 无效,如何在 yml 中创建多个秘密?

Invalid resource attribute MySecretA for resource SecretsManager, how to create more than one secret in yml?

将我的项目部署到 cloud formation 中并尝试创建多个 secret 后,显示以下错误消息:

Invalid resource attribute MySecretA for resource SecretsManager

YAML 片段:

SecretsManager:
 Type: AWS::SecretsManager::Secret
 MySecretA:
   Properties:
     Description: "some description"
     Name: "password B"
 MySecretB:
   Properties:
     Description: "another decription"
     Name: "password A"

我是根据这个文档做的https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-secretsmanager-secret.html。您知道如何在同一个 yaml 文件中创建多个秘密吗?

 MySecretA:
   Type: AWS::SecretsManager::Secret
   Properties:
     Description: "some description"
     Name: "password B"

 MySecretB:
   Type: AWS::SecretsManager::Secret
   Properties:
     Description: "another decription"
     Name: "password A"