Skip to content

Commit

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

0 comments on commit a12251e

Please sign in to comment.