We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e3fb3f commit eb7c200Copy full SHA for eb7c200
docs/opentofu-remote-state.md
@@ -143,7 +143,11 @@ per-checkout configuration is required.
143
144
```bash
145
# Get current openstack project:
146
- PROJECT_ID=$(openstack token issue -f value -c project_id)
+ TOKEN_DATA=$(openstack token issue -f json)
147
+ PROJECT_ID=$(echo "$TOKEN_DATA" | jq -r '.project_id')
148
+ TOKEN_ID=$(echo "$TOKEN_DATA" | jq -r '.id')
149
+ openstack revoke token $TOKEN_ID
150
+
151
# Get first creds in current project:
152
EC2_CREDS=$(openstack ec2 credentials list -f json | jq -r --arg pid "$PROJECT_ID" '.[] | select(.["Project ID"] == $pid) | @json' | head -n 1)
153
# Set creds for OpenTofu s3 backend:
0 commit comments