question

surlac avatar image
surlac asked

ASK CLI: policy in src

I've created a project with ASK CLI using "$ask new", it created new IAM user and role along with Skill and lambda, which is great. Now I've added DynamoDB to the project which requires AmazonDynamoDBFullAccess policy. I would like to keep project files self contained, so all necessary dependencies (e.g. policies) are there in source code and added as part of "$ask deploy" instead of going to AWS console and updating role.

How would I define "AmazonDynamoDBFullAccess" in project files (e.g. in skillManifest of skill.json) ?

alexa skills kitskilllambdaask clipolicy update
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

KAIYIN@AMAZON.COM avatar image
KAIYIN@AMAZON.COM answered

You can use AWS CLI for doing such things programmatically. For example, check out http://docs.aws.amazon.com/cli/latest/reference/iam/attach-role-policy.html. Play around the AWS CLI documentation.

10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Tim avatar image
Tim answered

This would be a nice feature, is it on the roadmap for the ask cli?

1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

KAIYIN@AMAZON.COM avatar image KAIYIN@AMAZON.COM commented ·

You can download AWS CLI and start from there.

0 Likes 0 ·