Skip to content

Commit

Permalink
Add debugging information
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfontaine committed Apr 25, 2024
1 parent 215de4f commit 042393e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spacemk/commands/import_state_files_to_spacelift.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def _create_context(spacelift: Spacelift, space_id: str, token: str):
TF_WORKSPACE_ID=$1
echo 'Downloading Terraform state file'
STATE_DOWNLOAD_URL=$(curl --fail \
--header "Authorization: Bearer $TF_TOKEN" \
--header "Content-Type: application/vnd.api+json" \
Expand All @@ -37,6 +38,7 @@ def _create_context(spacelift: Spacelift, space_id: str, token: str):
"https://app.terraform.io/api/v2/workspaces/${TF_WORKSPACE_ID}/current-state-version" \
| jq -r '.data.attributes."hosted-state-download-url"' )
echo 'Pushing Terraform state file'
curl --fail \
--header "Authorization: Bearer $TF_TOKEN" \
--location \
Expand Down

0 comments on commit 042393e

Please sign in to comment.