Skip to content

Commit

Permalink
handle deps when SDBCache is false. StackTags default for AppEng
Browse files Browse the repository at this point in the history
  • Loading branch information
kteague committed Jul 26, 2019
1 parent 4f0055a commit 8c4b5bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/aim/application/app_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(
config_ref_prefix,
stack_group,
ref_type,
stack_tags,
stack_tags=StackTags(),
subenv_ctx=None
):
self.aim_ctx = aim_ctx
Expand Down
9 changes: 7 additions & 2 deletions src/aim/cftemplates/lambda_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def __init__(self, aim_ctx, account_ctx, aws_region, aws_name, lambda_config, la
Type: AWS::Lambda::Function
DependsOn:
- SQSExecutionPolicy
- LambdaSDBCacheDomain
{0[sdb_dependency]:s}
Properties:
# Important: If you specify a name, you cannot perform updates that require
# replacement of this resource. You can perform updates that require no or
Expand Down Expand Up @@ -265,10 +265,15 @@ def __init__(self, aim_ctx, account_ctx, aws_region, aws_name, lambda_config, la
self.register_stack_output_config(lambda_config_ref+'.arn', 'FunctionArn')
self.register_stack_output_config(lambda_config_ref+'.invoke_policy.arn', 'InvokePolicyArn')

if lambda_config.sdb_cache:
sdb_dependency = " - LambdaSDBCacheDomain\n"
else:
sdb_dependency = ""
template_table = {
'parameters': "",
'environment': "",
'outputs': ""
'outputs': "",
'sdb_dependency': sdb_dependency
}

env_header = """
Expand Down

0 comments on commit 8c4b5bb

Please sign in to comment.