我还查看了https://docs.aws.amazon.com/secretsmanager/latest/apireference/API_GetSecretValue.html,但没有找到好的答案。
'''
Amazon.SecretsManager.AmazonSecretsManagerException: User: arn:aws:iam::<ACCT_ID>:user/<USER> is not authorized to perform: secretsmanager:GetSecretValue on resource: <SECRET_NAME> because no identity-based policy allows the secretsmanager:GetSecretValue action
'''
IAM策略: