Comments (2)
@alvin-huang The 1.24.0 create a default VSwitch for your instance, but the 1.25.0 doesn't create the default VSwitch anymore, so VSwitch ID must be specified when you create instances, please try the following main.tf:
provider "alicloud" {
}
data "alicloud_zones" "zones_ds" {
"available_instance_type" = "${var.instance_type}"
}
resource "alicloud_vpc" "vpc" {
name = "tf_test_foo"
cidr_block = "172.16.0.0/12"
}
resource "alicloud_vswitch" "vsw" {
vpc_id = "${alicloud_vpc.vpc.id}"
cidr_block = "172.16.0.0/21"
availability_zone = "${data.alicloud_zones.zones_ds.zones.0.id}"
}
resource "alicloud_security_group" "default" {
name = "default"
description = "default"
vpc_id = "${alicloud_vpc.vpc.id}"
}
resource "alicloud_instance" "test" {
count = 2
image_id = "${var.image_id}"
instance_type = "${var.instance_type}"
security_groups = ["${alicloud_security_group.default.id}"]
tags = "${var.tag}"
vswitch_id = "${alicloud_vswitch.vsw.id}"
}
from terraform-provider-alicloud.
@alvin-huang I also encountered the same problem using latest terraform-provider-alicloud, and follow your suggestion switch back to 1.24.0 do resolve the problem. following https://github.com/terraform-providers/terraform-provider-alicloud/issues/648#issuecomment-453891799 's tf will resolve the problem.
from terraform-provider-alicloud.
Related Issues (20)
- [FEAT] expose `arn` for resource `alicloud_ims_oidc_provider`
- [FEAT] Support attaching NLB server groups to Auto Scaling groups in the Alicloud Terraform Provider
- [FEAT] Support for KMS Encryption in MNS Topics in AliCloud Terraform Provider
- Cloud Monitor metrics vs Cloud Watch metrics
- [FEAT] Support for sending alerts to MNS (Message Notification Service) via AliCloud Terraform Provider
- Terraform provider manual imcomplete HOT 1
- [FEAT] Support device encryption in the terraform-alicloud-autoscaling module.
- RAM resource was not able to destroy after created
- Support for External mode of profile
- Failed to query available provider packages HOT 1
- alicloud_alikafka_instance cannot get the endpoint with domain
- alicloud_alikafka_instance cannot set config of AutoTopicCreation and AutoGroupCreation
- [FEAT] Support notaction argument in alicloud_ram_policy_document Data sources
- alicloud_oss_bucket open Real time log query error
- How to close the ipv6 function of VPC and vSwitch successfully in terraform
- [FEAT] Support security policy in `alicloud_ots_instance`
- `alicloud_ots_instance_attachment` with multiple vswitches doesn't work as expected
- [FEAT Request] V3 Kafka serverless resource
- Datasource "alicloud_vpcs" does not have the attribute of the dhcp option set
- Support wildcard domain in alicloud_cdn_domain_new
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terraform-provider-alicloud.