We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenTofu v1.8.7 on darwin_amd64 + provider registry.opentofu.org/hashicorp/alicloud v1.237.0
more details: walbertus/learning@6eef608
resource "alicloud_vpc" "default" { is_default = true description = "test" cidr_block = "10.0.0.0/16" vpc_name = "test-vpc" enable_ipv6 = false }
VPC should be created with CIDR "10.0.0.0/16" and name "test-vpc" after the first apply.
VPC is created with CIDR "127.16.0.0/16" and an empty name. Second plan result:
# alicloud_vpc.default will be updated in-place ~ resource "alicloud_vpc" "default" { ~ cidr_block = "172.16.0.0/16" -> "10.0.0.0/16" + description = "test" id = "vpc-bp1wdhr0muswtagst6gly" tags = {} + vpc_name = "test-vpc" # (11 unchanged attributes hidden) }
Run apply the second time finally set the correct CIDR and name.
Please list the steps required to reproduce the issue, for example:
tofu plan
tofu apply -auto-approve
The text was updated successfully, but these errors were encountered:
I'm trying to add those parameters when creating the default VPC but still failed. ref: walbertus@7ac5dd2
It turns out it's because the API for creating default VPC does not accept those parameter. https://api.alibabacloud.com/document/Vpc/2016-04-28/CreateDefaultVpc Why the API does not allow those params? Next apply command able to correctly update the value.
Sorry, something went wrong.
Trying to do it in resourceAliCloudVpcVpcUpdate also failed, probably because it's too quick.
resourceAliCloudVpcVpcUpdate
There's no solution on this for now unless the API is updated. Workaround is to execute the tofu apply twice.
tofu apply
No branches or pull requests
Terraform Version
Affected Resource(s)
Terraform Configuration Files
more details: walbertus/learning@6eef608
Expected Behavior
VPC should be created with CIDR "10.0.0.0/16" and name "test-vpc" after the first apply.
Actual Behavior
VPC is created with CIDR "127.16.0.0/16" and an empty name.
Second plan result:
Run apply the second time finally set the correct CIDR and name.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
tofu plan
tofu apply -auto-approve
tofu plan
tofu apply -auto-approve
The text was updated successfully, but these errors were encountered: