AWS Code Sample
Catalog

asm-trust-policy-grants-asm-svc-perms-to-invoke-function.json

This resource-based policy enables the AWS Secrets Manager service to invoke the Lambda rotation function.

{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": {"Service": "secretsmanager.amazonaws.com"}, "Action": "lambda:InvokeFunction", "Resource": "<arn_of_the_Lambda_rotation_function_that_this_trust_policy_is_attached_to>" } ] }

Sample Details

Service: secretsmanager

Author: AWS

Type: full-example

On this page: