Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save heoelri/335c78a46e474f9ab304d4dbba9376ab to your computer and use it in GitHub Desktop.
Save heoelri/335c78a46e474f9ab304d4dbba9376ab to your computer and use it in GitHub Desktop.
/opt/hostedtoolcache/terraform/0.12.24/x64/terraform init -backend-config=storage_account_name=terraform -backend-config=container_name=terraform-state -backend-config=key=seattle.tfstate -backend-config=resource_group_name=terraform -backend-config=arm_subscription_id=49de790a-c9d6-4a10-a2a1-1d5fcff06c86 -backend-config=arm_tenant_id=*** -backend-config=arm_client_id=*** -backend-config=arm_client_secret=***
2020/05/06 10:17:30 [INFO] Terraform version: 0.12.24  
2020/05/06 10:17:30 [INFO] Go runtime version: go1.12.13
2020/05/06 10:17:30 [INFO] CLI args: []string{"/opt/hostedtoolcache/terraform/0.12.24/x64/terraform", "init", "-backend-config=storage_account_name=terraform", "-backend-config=container_name=terraform-state", "-backend-config=key=seattle.tfstate", "-backend-config=resource_group_name=terraform", "-backend-config=arm_subscription_id=49de790a-c9d6-4a10-a2a1-1d5fcff06c86", "-backend-config=arm_tenant_id=***", "-backend-config=arm_client_id=***", "-backend-config=arm_client_secret=***"}
2020/05/06 10:17:30 [DEBUG] Attempting to open CLI config file: /home/vsts/.terraformrc
2020/05/06 10:17:30 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/05/06 10:17:30 [INFO] CLI command args: []string{"init", "-backend-config=storage_account_name=terraform", "-backend-config=container_name=terraform-state", "-backend-config=key=seattle.tfstate", "-backend-config=resource_group_name=terraform", "-backend-config=arm_subscription_id=49de790a-c9d6-4a10-a2a1-1d5fcff06c86", "-backend-config=arm_tenant_id=***", "-backend-config=arm_client_id=***", "-backend-config=arm_client_secret=***"}

Initializing the backend...
2020/05/06 10:17:30 [TRACE] Meta.Backend: merging -backend-config=... CLI overrides into backend configuration
2020/05/06 10:17:30 [TRACE] Meta.Backend: built configuration for "azurerm" backend with hash value 1983920158
2020/05/06 10:17:30 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2020/05/06 10:17:30 [DEBUG] New state was assigned lineage "8088acba-b281-d9fd-d066-c00d28355f1a"
2020/05/06 10:17:30 [TRACE] Meta.Backend: moving from default local state only to "azurerm" backend
2020/05/06 10:17:30 [DEBUG] Loading Environment from Endpoint "https://management.seattle.azurestack.relecloud.com"
2020/05/06 10:17:32 [DEBUG] checking for provider in "."
2020/05/06 10:17:32 [DEBUG] checking for provider in "/opt/hostedtoolcache/terraform/0.12.24/x64"
2020/05/06 10:17:32 [DEBUG] checking for provisioner in "."
2020/05/06 10:17:32 [DEBUG] checking for provisioner in "/opt/hostedtoolcache/terraform/0.12.24/x64"
2020/05/06 10:17:32 [INFO] Failed to read plugin lock file .terraform/plugins/linux_amd64/lock.json: open .terraform/plugins/linux_amd64/lock.json: no such file or directory
2020/05/06 10:17:32 [TRACE] backend/local: state manager for workspace "default" will:
 - read initial snapshot from terraform.tfstate
 - write new snapshots to terraform.tfstate
 - create any backup at terraform.tfstate.backup
2020/05/06 10:17:32 [TRACE] statemgr.Filesystem: reading initial snapshot from terraform.tfstate
2020/05/06 10:17:32 [TRACE] statemgr.Filesystem: snapshot file has nil snapshot, but that's okay
2020/05/06 10:17:32 [TRACE] statemgr.Filesystem: read nil snapshot
2020/05/06 10:17:32 [TRACE] Meta.Backend: ignoring local "default" workspace because its state is empty
2020/05/06 10:17:32 [DEBUG] New state was assigned lineage "4acd6ab8-0389-b490-267b-e78dbd1ee932"
2020/05/06 10:17:32 [TRACE] Preserving existing state lineage "4acd6ab8-0389-b490-267b-e78dbd1ee932"

Successfully configured the backend "azurerm"! Terraform will automatically
use this backend unless the backend configuration changes.
2020/05/06 10:17:32 [DEBUG] Building the Blob Client from an Access Token

Warning: "arm_tenant_id": [DEPRECATED] `arm_tenant_id` has been replaced by `tenant_id`



Warning: "arm_subscription_id": [DEPRECATED] `arm_subscription_id` has been replaced by `subscription_id`



Warning: "arm_client_secret": [DEPRECATED] `arm_client_secret` has been replaced by `client_secret`



Warning: "arm_client_id": [DEPRECATED] `arm_client_id` has been replaced by `client_id`



Error: Failed to get existing workspaces: storage: service returned error: StatusCode=400, ErrorCode=InvalidHeaderValue, ErrorMessage=The value for one of the HTTP headers is not in the correct format.
RequestId:2410fce1-01ef-002b-5a6d-3b6c488f8244
Time:2020-05-06T10:17:36.2953895Z, RequestInitiated=Wed, 06 May 2020 10:17:35 GMT, RequestId=2410fce1-01ef-002b-5a6d-3b6c488f8244, API Version=, QueryParameterName=, QueryParameterValue=
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment