Skip to content

Commit

Permalink
Added support to set region on Lambda functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
gitwater committed Nov 11, 2021
1 parent e56ec4d commit 9e7bbf8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/paco/application/reseng_lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,14 @@ class LambdaResourceEngine(ResourceEngine):
def init_resource(self):
# is this for Lambda@Edge?
edge_enabled = False
if self.resource.region != None:
self.aws_region = self.resource.region
if self.resource.edge != None and self.resource.edge.is_enabled():
edge_enabled = True

# Create function execution role
role_name = 'iam_role'
if self.resource.iam_role.enabled == False:
if self.resource.iam_role and self.resource.iam_role.enabled == False:
role_config_yaml = """
instance_profile: false
path: /
Expand Down

0 comments on commit 9e7bbf8

Please sign in to comment.