Skip to content

Commit 57fdb30

Browse files
jandroavjmfontaine
authored andcommitted
Update README.md
Added --header "Authorization: Bearer $TFC_TOKEN" to the second curl command
1 parent 1683e5d commit 57fdb30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ STATE_DOWNLOAD_URL=$(curl -sSL --fail \
142142
"https://app.terraform.io/api/v2/workspaces/${TFC_WORKSPACE_ID}/current-state-version" \
143143
| jq -r '.data.attributes."hosted-state-download-url"' )
144144

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

0 commit comments

Comments
 (0)