container: when importing, namespace_id is not a regional id #2380
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
Terraform Configuration Files
Expected Behavior
After
terraform import
ing ascaleway_container
, thenamespace_id
field should be a regional uuid value (likefr-par/22222222-2222-2222-2222-222222222222
) to be consistent withscaleway_function
, and withscaleway_container_namespace
'sid
output.Actual Behavior
After
terraform import
ing ascaleway_container
, thenamespace_id
field is an uuid (like22222222-2222-2222-2222-222222222222
).So, if we run
terraform apply
after importing, Terraform will update the container'snamespace_id
field, while it should not.Steps to Reproduce
terraform import scaleway_container.test fr-par/11111111-1111-1111-1111-111111111111
namespace_id
field:jq '.resources[] | select(.name == "test") | .instances[0].attributes.namespace_id' terraform.tfstate
References
scaleway_function
, thenamespace_id
have been added here: function: missing fields in Read #2364The text was updated successfully, but these errors were encountered: