I'm working through the tutorial "Walkthrough 2: Handling Amazon S3 Events (Node.js)". I have a question about the CLI parameters:
aws lambda add-permission \
--function-name CreateThumbnail \
--region us-west-2 \
--statement-id some-unique-id \
--action "lambda:InvokeFunction" \
--principal s3.amazonaws.com \
--source-arn arn:aws:s3:::sourcebucket \
--source-account bucket-owner-account-id \
--profile adminuser
What is the parameter --statement-id some-unique-id
?
It's an arbitrary/opaque identifier that you essentially make up. In some situations, it's optional. In IAM policies, this is shown as the Sid
. An example might be simply 1
or MyStringIMadeUp12345
. It's typically used to describe or track the policy and has no meaning to AWS. Some services impose uniqueness constraints, meaning that each statement has to have a unique Sid.
http://docs.aws.amazon.com/IAM/latest/UserGuide/AccessPolicyLanguage_ElementDescriptions.html#Sid
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With