Skip to content
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

Block type parameters issue #8

Open
hirokuda opened this issue Apr 10, 2020 · 0 comments
Open

Block type parameters issue #8

hirokuda opened this issue Apr 10, 2020 · 0 comments

Comments

@hirokuda
Copy link

hirokuda commented Apr 10, 2020

I tried to deploy resource service instance with module 'ibm_resource_instance'.
In case if I define parameters with JSON like parameters: '{"scale_time" : 0}' and this error is occurred.

Blocks of type \"parameters\" are not expected here.

Did you mean to define", "argument \"parameters\"?

If so, use the equals sign to assign it a value.

I think this error is match with this issue about terraform as below.

hashicorp/terraform#21742

I checked generated terraform's file and I found this.

$ cat /var/tmp/ansible/ibmcloud/20200410110411889984_fail/ibm_resource_instance_db2-test.tf
resource ibm_resource_instance "db2-test" {
  name = "db2-test"
  *** omitted ***
  parameters {
    scale_time = 0
}
}

I think this is should be as below.

  parameters = {
    scale_time = 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant