AWS SAM managed policy for SSM get parameter
1
Is there any managed policy similar to DynamoDBReadPolicy for the ssm:GetParameter* permission for a Lambda function? I'm using aws-sam-cli and trying to follow this, but when I try to fetch the parameters when using sam local start-api , I get the following error: InvalidAction: The action or operation requested is invalid. Verify that the action is typed correctly. Here is the snippet where I try to get the parameter: const ssm = new AWS.SSM(); const param = { Name: "param1", WithDecryption: true }; const secret = await ssm.getParameter(param).promise(); The relevant template sections are below. Thanks! KeyAlias: Type: AWS::KMS::Alias Properties: AliasName: 'param1Key' TargetKeyId: !Ref Key Key: Type: AWS::KMS::Key Properties: ...