CloudFormationテンプレートファイルを開き、lambdaexecutionpolicy>Properties>PolicyDocument>Statement
の配列に以下を追加
...
},
// ここから追加
{
"Effect": "Allow",
"Action": [
"secretsmanager:GetSecretValue"
],
"Resource": {
"Fn::Sub": [
"arn:aws:secretsmanager:${region}:${account}:secret:*",
{
"region": {
"Ref": "AWS::Region"
},
"account": {
"Ref": "AWS::AccountId"
}
}
]
}
}
*
のご利用は計画的に