@@ -73,21 +73,21 @@ runs:
73
73
lifetime="${{ inputs.lifetime }}"
74
74
75
75
list_response=$(curl -X GET \
76
- -H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
76
+ -H "ls-api-key: ${LOCALSTACK_AUTH_TOKEN:-${ LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key } }}}" \
77
77
-H "content-type: application/json" \
78
78
https://api.localstack.cloud/v1/compute/instances)
79
79
80
80
instance_exists=$(echo "$list_response" | jq --arg NAME "$previewName" '.[] | select(.instance_name == $NAME)')
81
81
82
82
if [ -n "$instance_exists" ]; then
83
83
del_response=$(curl -X DELETE \
84
- -H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
84
+ -H "ls-api-key: ${LOCALSTACK_AUTH_TOKEN:-${ LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key } }}}" \
85
85
-H "content-type: application/json" \
86
86
https://api.localstack.cloud/v1/compute/instances/$previewName)
87
87
fi
88
88
89
89
response=$(curl -X POST -d "{\"instance_name\": \"${previewName}\", \"lifetime\": ${lifetime} ,\"env_vars\": {\"AUTO_LOAD_POD\": \"${autoLoadPod}\", \"EXTENSION_AUTO_INSTALL\": \"${extensionAutoInstall}\"}}"\
90
- -H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
90
+ -H "ls-api-key: ${LOCALSTACK_AUTH_TOKEN:-${ LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key } }}}" \
91
91
-H "content-type: application/json" \
92
92
https://api.localstack.cloud/v1/compute/instances)
93
93
endpointUrl=$(echo "$response" | jq -r .endpoint_url)
@@ -118,7 +118,7 @@ runs:
118
118
shell : bash
119
119
run : |
120
120
log_response=$(curl -X GET \
121
- -H "ls-api-key: ${LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key }}}" \
121
+ -H "ls-api-key: ${LOCALSTACK_AUTH_TOKEN:-${ LOCALSTACK_API_KEY:-${{ inputs.localstack-api-key } }}}" \
122
122
-H "content-type: application/json" \
123
123
https://api.localstack.cloud/v1/compute/instances/$previewName/logs)
124
124
0 commit comments