File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ inputs:
2323 description : ' The lifetime of the ephemeral instance, how long the instance should be available for'
2424 required : false
2525 default : ' 30'
26- configuration :
27- description : ' Configuration for the LocalStack environment to be created'
26+ ephemeral- configuration :
27+ description : ' Configuration for the ephemeral LocalStack environment to be created'
2828 required : false
2929 default : ' '
3030
7373 autoLoadPod="${AUTO_LOAD_POD:-${{ inputs.auto-load-pod }}}"
7474 extensionAutoInstall="${EXTENSION_AUTO_INSTALL:-${{ inputs.extension-auto-install }}}"
7575 lifetime="${{ inputs.lifetime }}"
76- configuration=' ${{ inputs.configuration }}'
77-
76+ configuration=" ${{ inputs.ephemeral- configuration }}"
77+ echo "Creating preview environment with configuration: $configuration"
7878 # Convert configuration to JSON format
7979 IFS=',' read -r -a configArray <<< "$configuration"
8080 envVarsJson=$(jq -n '{}')
8484 value=${kv[1]// /}
8585 envVarsJson=$(echo $envVarsJson | jq --arg key "$key" --arg value "$value" '. + {($key): $value}')
8686 done
87+ echo "Configuration JSON: $envVarsJson"
8788
8889 envVarsJson=$(echo $envVarsJson | jq --arg autoLoadPod "$autoLoadPod" --arg extensionAutoInstall "$extensionAutoInstall" '. + {AUTO_LOAD_POD: $autoLoadPod, EXTENSION_AUTO_INSTALL: $extensionAutoInstall}')
89-
90+ echo "*** Configuration ***"
91+ echo $envVarsJson
9092 list_response=$(curl -X GET \
9193 -H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
9294 -H "content-type: application/json" \
You can’t perform that action at this time.
0 commit comments