ionoscloud_container_registry
considered as created before it is fully ready
#607
Labels
bug
Something isn't working
Description
When creating an IONOS Cloud Container Registry using the Terraform provider, the
hostname
attribute is not available. This causes issues with configurations that depend on thehostname
attribute being available immediately after the resource is created.Expected behavior
The Terraform provider should only consider the
ionoscloud_container_registry
as created if it is actually available and ready to use (not in the 'WaitingForStorage' state anymore) and all its attributes are set.Environment
Terraform version:
Provider version:
OS:
Configuration Files
How to Reproduce
terraform init && terraform plan && terraform apply -auto-approve
Error and Debug Output
terraform apply
output (note that the hostname value is an empty string):Accessing the state:
Additional Notes
I am fully aware that this is an eventual consistency error, but I believe it is better for the Terraform provider to ensure that created resources are actually ready to use before considering them as created. This would help prevent issues with dependent resources and provisioners that rely on the resource being fully available and all its attributes being set.
The text was updated successfully, but these errors were encountered: