garnaat / kappa

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

Allow deploys with existing role #96

Closed wvidana closed 7 years ago

wvidana commented 7 years ago

This code allows deploying Lambda using an existing role (instead of creating a new one).

Note: tried to update new test for this functionality, but got some problems (too deep recursion) on placebo package. Anyways, editing the foo/kappa.yml to use a role instead of a policy worked (tests passed).

A kappa.yml example would be:

---
name: kappa-simple
environments:
  dev:
    profile: foobar
    region: us-west-2
    role:
      name: foo-the-role
lambda:    
  description: Foo the Bar
  handler: simple.handler
  runtime: python2.7
  memory_size: 256
  timeout: 3
wvidana commented 7 years ago

Solves https://github.com/garnaat/kappa/issues/83

zzsnzmn commented 7 years ago

Anything else needed to get this merged? Would be happy to assist.

josegonzalez commented 7 years ago

Needs docs.

wvidana commented 7 years ago

Just added that example on the PR description the the sample code folder