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