Myra-Security-GmbH/terraform-provider-myrasec

Update `myrasec_dns_record` after terraform import

Closed this issue · 1 comments

Hello,

I would like to import DNS-record and than modify it. Unfortunately it doesn't work as expected. Please find the steps to reproduce:

terraform import myrasec_dns_record.lidl-si "www.some.com:100101"
works, but "domain_name" attribute is not imported.

terraform plan
complains 'The argument "domain_name" is required, but no definition was found.'

if to add "domain_name" manually
terraform plan
returns:
resource "myrasec_dns_record" "www-some-com" {
+ domain_name = "www.some.com" # forces replacement
...

and even "replacement" doesn't work throwing this error:
terraform apply
myrasec_dns_record.lidl-si: Destroying... [id=www.some.com:100101]

│ Error: Error parsing record id

│ strconv.Atoi: parsing "www.some.com:100101": invalid syntax


My expectation would be to have a way to modify existing DNS entry.

Thanks in advance!

I released a fixed version of the terraform provider. This issue should be solved using version v1.19.0 of the provider.
Please let me know if it works for you.