From 34dc522424a667848dad14082581d4edc6895e6c Mon Sep 17 00:00:00 2001 From: Khai Do <3697686+zaro0508@users.noreply.github.com> Date: Tue, 10 Oct 2023 10:40:29 -0700 Subject: [PATCH] Update cfn-macro-ssm-param lambda (#983) Update lambda to use parameterized roles depends on https://github.com/Sage-Bionetworks-IT/cfn-macro-ssm-param/pull/12 --- sceptre/scipool/config/bmgfki/cfn-macro-ssm-param.yaml | 5 ++++- sceptre/scipool/config/develop/cfn-macro-ssm-param.yaml | 5 ++++- sceptre/scipool/config/prod/cfn-macro-ssm-param.yaml | 5 ++++- sceptre/scipool/config/strides/cfn-macro-ssm-param.yaml | 5 ++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/sceptre/scipool/config/bmgfki/cfn-macro-ssm-param.yaml b/sceptre/scipool/config/bmgfki/cfn-macro-ssm-param.yaml index 4470d2c3..024e00e2 100644 --- a/sceptre/scipool/config/bmgfki/cfn-macro-ssm-param.yaml +++ b/sceptre/scipool/config/bmgfki/cfn-macro-ssm-param.yaml @@ -1,6 +1,9 @@ template: type: http - url: https://{{stack_group_config.admincentral_cf_bucket}}.s3.amazonaws.com/cfn-macro-ssm-param/0.2.0/cfn-macro-ssm-param.yaml + url: https://{{stack_group_config.admincentral_cf_bucket}}.s3.amazonaws.com/cfn-macro-ssm-param/0.4.0/cfn-macro-ssm-param.yaml stack_name: "cfn-macro-ssm-param" dependencies: - "bmgfki/bootstrap.yaml" +parameters: + LambdaExecutionRoleArn: !stack_output_external "bootstrap::AWSIAMSsmParamLambdaExecutionRole" + LambdaServiceRoleArn: !stack_output_external "bootstrap::AWSIAMCfServiceRole" diff --git a/sceptre/scipool/config/develop/cfn-macro-ssm-param.yaml b/sceptre/scipool/config/develop/cfn-macro-ssm-param.yaml index 6185ce11..cbe42944 100644 --- a/sceptre/scipool/config/develop/cfn-macro-ssm-param.yaml +++ b/sceptre/scipool/config/develop/cfn-macro-ssm-param.yaml @@ -1,6 +1,9 @@ template: type: http - url: https://{{stack_group_config.admincentral_cf_bucket}}.s3.amazonaws.com/cfn-macro-ssm-param/0.2.0/cfn-macro-ssm-param.yaml + url: https://{{stack_group_config.admincentral_cf_bucket}}.s3.amazonaws.com/cfn-macro-ssm-param/0.4.0/cfn-macro-ssm-param.yaml stack_name: "cfn-macro-ssm-param" dependencies: - "develop/bootstrap.yaml" +parameters: + LambdaExecutionRoleArn: !stack_output_external "bootstrap::AWSIAMSsmParamLambdaExecutionRoleArn" + LambdaServiceRoleArn: !stack_output_external "bootstrap::AWSIAMCfServiceRoleArn" diff --git a/sceptre/scipool/config/prod/cfn-macro-ssm-param.yaml b/sceptre/scipool/config/prod/cfn-macro-ssm-param.yaml index 922c49a6..8ddc8ae0 100644 --- a/sceptre/scipool/config/prod/cfn-macro-ssm-param.yaml +++ b/sceptre/scipool/config/prod/cfn-macro-ssm-param.yaml @@ -1,6 +1,9 @@ template: type: http - url: https://{{stack_group_config.admincentral_cf_bucket}}.s3.amazonaws.com/cfn-macro-ssm-param/0.2.0/cfn-macro-ssm-param.yaml + url: https://{{stack_group_config.admincentral_cf_bucket}}.s3.amazonaws.com/cfn-macro-ssm-param/0.4.0/cfn-macro-ssm-param.yaml stack_name: "cfn-macro-ssm-param" dependencies: - "prod/bootstrap.yaml" +parameters: + LambdaExecutionRoleArn: !stack_output_external "bootstrap::AWSIAMSsmParamLambdaExecutionRole" + LambdaServiceRoleArn: !stack_output_external "bootstrap::AWSIAMCfServiceRole" diff --git a/sceptre/scipool/config/strides/cfn-macro-ssm-param.yaml b/sceptre/scipool/config/strides/cfn-macro-ssm-param.yaml index a4f8ff7d..f2daf437 100644 --- a/sceptre/scipool/config/strides/cfn-macro-ssm-param.yaml +++ b/sceptre/scipool/config/strides/cfn-macro-ssm-param.yaml @@ -1,6 +1,9 @@ template: type: http - url: https://{{stack_group_config.admincentral_cf_bucket}}.s3.amazonaws.com/cfn-macro-ssm-param/0.2.0/cfn-macro-ssm-param.yaml + url: https://{{stack_group_config.admincentral_cf_bucket}}.s3.amazonaws.com/cfn-macro-ssm-param/0.4.0/cfn-macro-ssm-param.yaml stack_name: "cfn-macro-ssm-param" dependencies: - "strides/bootstrap.yaml" +parameters: + LambdaExecutionRoleArn: !stack_output_external "bootstrap::AWSIAMSsmParamLambdaExecutionRole" + LambdaServiceRoleArn: !stack_output_external "bootstrap::AWSIAMCfServiceRole"