Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added --header "Authorization: Bearer $TFC_TOKEN" to the second curl command
  • Loading branch information
jandroav authored and jmfontaine committed Feb 3, 2024
1 parent 1683e5d commit 57fdb30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ STATE_DOWNLOAD_URL=$(curl -sSL --fail \
"https://app.terraform.io/api/v2/workspaces/${TFC_WORKSPACE_ID}/current-state-version" \
| jq -r '.data.attributes."hosted-state-download-url"' )

curl -sSL --fail -o state.tfstate "${STATE_DOWNLOAD_URL}"
curl -sSL --fail --header "Authorization: Bearer $TFC_TOKEN" -o state.tfstate "${STATE_DOWNLOAD_URL}"
terraform state push -force state.tfstate
```

Expand Down

0 comments on commit 57fdb30

Please sign in to comment.