-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While adding additional components(Ranger and Solr) to the main.tf, Its throwing an error "Unsupported block type" #7912
Comments
Placing doc
|
Hi Venky,
I have added the cluster configs as below shown. But still its giving an error. I copied my code to the ticket. Kindly review and help me with it.
Thanks in advance..!
Best Regards,
Srinivas.
From: venkykuberan <[email protected]>
Date: Tuesday, December 1, 2020 at 3:21 PM
To: hashicorp/terraform-provider-google <[email protected]>
Cc: Srinivas Makkena <[email protected]>, Author <[email protected]>
Subject: Re: [hashicorp/terraform-provider-google] While adding additional components(Ranger and Solr) to the main.tf, Its throwing an error "Unsupported block type" (#7912)
Placing software_config under cluster_config block should work as expected.
doc
The cluster_config block supports:
cluster_config {
gce_cluster_config { ... }
master_config { ... }
worker_config { ... }
preemptible_worker_config { ... }
software_config { ... }
# You can define multiple initialization_action blocks
initialization_action { ... }
encryption_config { ... }
endpoint_config { ... }
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/hashicorp/terraform-provider-google/issues/7912*issuecomment-736795890__;Iw!!A4F2R9G_pg!OElnZ4FdAb13DMskoN5axj10k1ulgRPj3hxFZCRpKWGktOu_BSVOGzXCmNi4jGhl$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ARN43M5BSW6GIGWSXAGS4FDSSVF4FANCNFSM4UJOBH6A__;!!A4F2R9G_pg!OElnZ4FdAb13DMskoN5axj10k1ulgRPj3hxFZCRpKWGktOu_BSVOGzXCmPfQ0HR5$>.
|
Hi Venky, Thanks for your quick reply..! As you recommended, I've applied the changes and ran the Terraform init, validate and plan. Below are the outputs, Changes I've made: resource "google_dataproc_cluster" "kb-iscan-env-ranger" { cluster_config { } **makkena@makkena-mac iscan-env-ranger % terraform_0.12.24 init The Terraform configuration must be valid before initialization so that Error: Argument or block definition required on main.tf line 91, in resource "google_dataproc_cluster" "kb-iscan-env-ranger": An argument or block definition is required here.** makkena@makkena-mac iscan-env-ranger % terraform_0.12.24 validate Error: Argument or block definition required on main.tf line 91, in resource "google_dataproc_cluster" "kb-iscan-env-ranger": An argument or block definition is required here. makkena@makkena-mac iscan-env-ranger % terraform_0.12.24 plan Error: Argument or block definition required on main.tf line 91, in resource "google_dataproc_cluster" "kb-iscan-env-ranger": An argument or block definition is required here. |
Curly brackets aren't matching, add
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
modular-magician
user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned tohashibot
, a community member has claimed the issue already.Terraform Version
terraform_0.12.24
Affected Resource(s)
_resource "google_dataproc_cluster" "kb-iscan-env-ranger" {
provider = google-beta
name = "kb-iscan-env-ranger"
region = "us-central1"
Terraform Configuration Files
Debug Output
Error: Argument or block definition required
on main.tf line 31:
31: }
An argument or block definition is required here.
makkena@makkena-mac iscan-env-ranger % vi main.tf
makkena@makkena-mac iscan-env-ranger % vi main.tf
makkena@makkena-mac iscan-env-ranger % terraform_0.12.24 plan
Error: Unsupported block type
on main.tf line 27, in resource "google_dataproc_cluster" "kb-iscan-env-ranger":
27: software_config {
Blocks of type "software_config" are not expected here.
makkena@makkena-mac iscan-env-ranger % vi main.tf
makkena@makkena-mac iscan-env-ranger % vi main.tf
makkena@makkena-mac iscan-env-ranger % vi main.tf
makkena@makkena-mac iscan-env-ranger % vi main.tf
makkena@makkena-mac iscan-env-ranger % terraform_0.12.24 plan
Error: Argument or block definition required
on main.tf line 92, in resource "google_dataproc_cluster" "kb-iscan-env-ranger":
An argument or block definition is required here.
makkena@makkena-mac iscan-env-ranger % vi main.tf
makkena@makkena-mac iscan-env-ranger % vi main.tf
makkena@makkena-mac iscan-env-ranger % terraform_0.12.24 plan
Error: Unsupported block type
on main.tf line 27, in resource "google_dataproc_cluster" "kb-iscan-env-ranger":
27: software_config {
Blocks of type "software_config" are not expected here.
makkena@makkena-mac iscan-env-ranger % terraform_0.12.24 plan
Error: Unsupported block type
on main.tf line 27, in resource "google_dataproc_cluster" "kb-iscan-env-ranger":
27: software_config {
Blocks of type "software_config" are not expected here.
makkena@makkena-mac iscan-env-ranger % vi main.tf
makkena@makkena-mac iscan-env-ranger % terraform_0.12.24 validate
Error: Argument or block definition required
on main.tf line 91, in resource "google_dataproc_cluster" "kb-iscan-env-ranger":
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: