我有一段 cloudFormation 代码
"dareMeXDevCloudwatchMissingPayoutsJob": {
"Type": "AWS::Events::Rule",
"DependsOn": [
"xxx"
],
"Properties": {
"Description": "xxxxx)",
"RoleArn": {
"Fn::GetAtt": [
"xxxxx",
"Arn"
]
},
"Name": "xxxxx",
"ScheduleExpression": "cron(0 8 ? * 6 *)",
"State": "ENABLED",
"Targets": [
{
"Arn": {
"Fn::GetAtt": [
"xxxxxxx",
"Arn"
]
},
"Id": "xxxx",
"Input": "{\"val1\":\"val1\",\"secretVal\":\"??????????????????\"}"
}
]
}
}
Run Code Online (Sandbox Code Playgroud)
我想要完成的事情是将 Secrets Manager 值传递给变量secretVal
我尝试通过将 SecretVal 值设置为 来做到这一点{{resolve:secretsmanager:{arn of secret}:SecretString}},但随后在 cloudWatch 事件上我有 optput 类似{"val1": "val1", "secretVal": "{{resolve:secretsmanager:{arn of secret}:SecretString}}"}
例如,当我尝试将 Name 设置为 时 …
amazon-web-services aws-cloudformation amazon-cloudwatch aws-secrets-manager