coreos / tectonic-forum

Apache License 2.0
30 stars 9 forks source link

Terrraform.tfvars errro parsing : illegal char #270

Closed Learner-Manu closed 6 years ago

Learner-Manu commented 6 years ago

weird issue and would like to highlight,

Terraform.tfvars

env_name = "testing" project = "project1" region = "us-central1" zones = ["us-central1-a", "us-central1-b", "us-central1-c"] dns_suffix = "gcp.project1.cf-app.com" opsman_image_url = "https://storage.googleapis.com/ops-manager-us/pcf-gcp-1.12.0.tar.gz"

buckets_location = "US"

ssl_cert = <<SSL_CERT -----BEGIN CERTIFICATE----- some cert -----END CERTIFICATE----- SSL_CERT

ssl_private_key = <<SSL_KEY -----BEGIN RSA PRIVATE KEY----- some cert private key -----END RSA PRIVATE KEY----- SSL_KEY

service_account_key = <<project1@alien-proton-194710 { "type": "service_account", "project_id": "alien-proton-194710", "private_key_id": "another-gcp-private-key", "private_key": "-----BEGIN PRIVATE KEY-----another gcp private key-----END PRIVATE KEY-----\n", "client_email": "project1@alien-proton-194710.iam.gserviceaccount.com", "client_id": "109584552096969396216", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://accounts.google.com/o/oauth2/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/project1%40alien-proton-194710.iam.gserviceaccount.com" } SERVICE_ACCOUNT_KEY


Error

invalid value "terraform.tfvars" for flag -var-file-default: Error parsing terraform.tfvars: At 24:9: illegal char Usage: terraform apply [options] [DIR-OR-PLAN]

Error message is pointing to :

Unable to track down the error, Please help

IvanCherepov commented 6 years ago

It seems like you created an issue for a wrong project. If you're trying to deploy pcf please create an issue in https://github.com/pivotal-cf/terraforming-gcp/issues/new