garnaat / kappa

What precedes Lambda
http://kappa.readthedocs.org/en/develop/
Apache License 2.0
902 stars 88 forks source link

Adding a way to put in a policy as is into the kappa config file #42

Closed pas256 closed 8 years ago

pas256 commented 8 years ago

I needed to have kappa generate a policy that included

        {
            "Action": [
                "ecs:RegisterTaskDefinition"
            ],
            "Effect": "Allow",
            "Resource": "*"
        },

since ECS doesn't allow you to limit API calls to an ARN. Kinda weird.

So this PR adds the ability to specify a statements section under a policy and have it go verbatim into the policy.

garnaat commented 8 years ago

Hmm, that is a weird case with ECS. I don't understand it but I agree we need a workaround.

pas256 commented 8 years ago

Oh yeah @garnaat ... looks like restapi hasn't been checked in to this branch. I had to comment that out to get it working... hence the tests failing.