fatal: [localhost]: FAILED! => {"changed": false, "msg": "", "rc": 1, "resource": {"_name": "testimport", "_type": "ibm_certificate_manager_import", "target": "ibm_certificate_manager_import.testimport"}, "stderr": "
Error: Missing required argument
on ibm_certificate_manager_import_testimport.tf line 1, in resource "ibm_certificate_manager_import" "testimport":
1: resource ibm_certificate_manager_import "testimport" {
The argument "data" is required, but no definition was found.
Error: Unsupported block type
on ibm_certificate_manager_import_testimport.tf line 4, in resource "ibm_certificate_manager_import" "testimport":
4: data {
Blocks of type "data" are not expected here. Did you mean to define argument
"data"? If so, use the equals sign to assign it a value.
", "stderr_lines": ["", "Error: Missing required argument", "", " on ibm_certificate_manager_import_testimport.tf line 1, in resource "ibm_certificate_manager_import" "testimport":", " 1: resource ibm_certificate_manager_import "testimport" {", "", "The argument "data" is required, but no definition was found.", "", "", "Error: Unsupported block type", "", " on ibm_certificate_manager_import_testimport.tf line 4, in resource "ibm_certificate_manager_import" "testimport":", " 4: data {", "", "Blocks of type "data" are not expected here. Did you mean to define argument", ""data"? If so, use the equals sign to assign it a value.", ""], "stdout": "", "stdout_lines": []}
Code in ibm_certificate_manager_import_testimport.tf shows that "=" is missing after "data"
resource ibm_certificate_manager_import "testimport" {
certificate_manager_instance_id = "crn:v1:bluemix:public:cloudcerts:us-south:a/blabla::"
name = "test_import"
data {
content = "-----BEGIN CERTIFICATE-----blabla-----END CERTIFICATE-----"
}
}
I use part of the code from examples:
And error:
Code in ibm_certificate_manager_import_testimport.tf shows that "=" is missing after "data"