container: missing region field when importing a cron #2381
Labels
bug
container
Container issues, bugs and feature requests
priority:medium
Improvements that are not the main priority
Community Note
Terraform Version
registry.terraform.io/scaleway/scaleway
v2.36.0Affected Resource(s)
scaleway_container_cron
Terraform Configuration Files
Expected Behavior
After
terraform import
ing ascaleway_container_cron
, theregion
field should be set to the cron's region.Actual Behavior
After
terraform import
ing ascaleway_container
, theregion
field isnull
.So, if we run
terraform apply
after importing, Terraform will try to recreate thescaleway_container_cron
resource.Steps to Reproduce
terraform import scaleway_container_cron.test fr-par/11111111-1111-1111-1111-111111111111
region
field:jq '.resources[] | select(.name == "test") | .instances[0].attributes.region' terraform.tfstate
References
scaleway_function
, the missingregion
have been added here: function: missing fields in Read #2364. I guess this is the same issue, but for containers, and it only affectsregion
The text was updated successfully, but these errors were encountered: