Search code examples
amazon-web-servicesaws-lambdaaws-clicredentialsaws-secrets-manager

Question about how to grant Secrets Manager access permission to call Lambda


I'm currently following this article to create a Lambda function with this Generic Rotation Function Template, the first step is to create an AWS CloudFormation change set based on the generic rotation function template.

By doing this, I need to enter the Amazon Resource Name (ARN) for the generic rotation function template with AWS Command Line Interface (AWS CLI), the ARN is described here. The command is :arn:aws:serverlessrepo:us-east-1:297356227824:applications/SecretsManagerRotationTemplate

I'm very new to AWS CLI, I think I've installed it, but I tried to execute this command in CMD, it fave me error The filename, directory name, or volume label syntax is incorrect. Am I missing something? What directory should I use to execute this command? Many thanks.


Solution

  • That documentation is confusing. The first step tells you to "enter the ARN" but there is nothing to actually enter it into. Just skip to step 2 where it gives you the full command to run, including the ARN.