Skip to content

Commit c455286

Browse files
authored
feat: limited support for secure parameters passed to CF stack (#217)
* feat: limited support for secure parameters passed to CF stack * fix
1 parent e002429 commit c455286

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/deploy_cloudformation.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ on:
8888
slackToken:
8989
description: Slack API token
9090
required: false
91+
secretParameters:
92+
description: Secret parameters (plaint text or file) for cloudformation template. Limited security, scoped per CF stack.
93+
required: false
9194

9295
jobs:
9396
deploy:
@@ -192,7 +195,9 @@ jobs:
192195
fi
193196
194197
OPTIONAL_PARAMETERS=""
195-
if [ "${{ inputs.parameters }}" != "" ]; then
198+
if [ "${{ inputs.parameters }}" != "" ] && [ "${{ secrets.secretParameters }}" != "" ]; then
199+
OPTIONAL_PARAMETERS="${OPTIONAL_PARAMETERS} --parameter-overrides ${{ inputs.parameters }} ${{ secrets.secretParameters }}"
200+
elif [ "${{ inputs.parameters }}" != "" ] && [ "${{ secrets.secretParameters }}" == "" ]; then
196201
OPTIONAL_PARAMETERS="${OPTIONAL_PARAMETERS} --parameter-overrides ${{ inputs.parameters }}"
197202
fi
198203
if [ "${{ inputs.capabilities }}" != "" ]; then

0 commit comments

Comments
 (0)