Closed andrewferrier closed 3 years ago
Hello @andrewferrier, to workaround regarding your need:
resource "ibm_cis" "cis_instance" {
name = "Cloud Internet Services - example.com"
plan = "enterprise-usage"
resource_group_id = data.ibm_resource_group.resource_group.id
location = "global"
}
resource "ibm_cis_domain" "examplecom" {
domain = "example.com"
cis_id = ibm_cis.cis_instance.id
}
resource "ibm_cis_dns_record" "examplednsa" {
cis_id = ibm_cis.cis_instance.id
domain_id = ibm_cis_domain.examplecom.id
name = "example.com"
content = "1.2.3.4"
type = "A"
}
If you use the same name for your CIS domain, and the ibm_cis_dns_record.name
, then it will result in a @
in the CIS records.
Thanks, @ifs-pauljegouic . I was talking to Rolf Kocheisen from CIS and he gave me the same hint. Seems that workaround does work.
Hi @andrewferrier,
Please let us know if you are able to create dns record with name = "@"
with the latest released version of schematics.
closing the issue
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
Used through IBM Schematics (Terraform 0.12.20 at the time of writing)
Affected Resource(s)
ibm_cis_dns_record
Terraform Configuration Files
Relevant snippet:
Debug Output
Relevant output from Schematics:
Expected Behavior
DNS record should be created.
Actual Behavior
DNS record not created, with error
"message": "property 'name' is a required property"}
.Steps to Reproduce
Important Factoids
At a guess, I would assume this is some escaping issue or similar with the special char
@
. However, this is a very common entry to insert in a DNS record, and works fine when manually added to the CIS service.