AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Parameters: WebhookSecret: Type: String Description: The number as a secret key of a webhook Resources: SecretForWebhook: Type: AWS::SecretsManager::Secret Properties: Description: The number as a secret key of a webhook SecretString: !Sub - '{"secretNumber": "${WebhookSecret}"}' - WebhookSecret: !Ref WebhookSecret Tags: - Key: Project Value: Git-server Outputs: ArnSecretForWebhook: Description: ARN of secret key of a webhook Value: !Ref SecretForWebhook Export: Name: SecretForWebhook-ARN