AWS IAM Policy suitable for assigning to a user developing Chalice applications. Allows the developer sucessfully execute chalice deploy
, chalice delete
and chalice logs
Derived from comments on chalice/issues/59, extended by trial and error :-)
Subsitute YOUR-AWS-REGION
in chalice-dev-iam-policy.json
with the region you are deploying to, for example eu-west-1
.
If you have multiple profiles defined in ~/.aws/credentials
or ~/.aws/config
then you can specify the profile to use with the chalice commands via the AWS_PROFILE
environment variable. For example to use a profile called sandpit
when deploying:
export AWS_PROFILE=sandpit
chalice deploy
In case you have lambdas based on events, I had to add "events:PutRule, events:PutTargets" to get it to work