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)
- alicloud_cs_kubernetes_permissions
- 要不改改?
- Terraform Cloud 创建ecs,实例名无法使用变量
- terraformer使用terraform-provider-alicloud_v1.213.1插件报错
- terraformer调用报错
- 目前版本1.213.1版本无法兼容terraformer逆向工程~可以向下兼容v1.57.1版本支持么 HOT 1
- data_source "alicloud_cs_managed_kubernetes_clusters" not support getting state
- DisasterRecoveryVSwitchId
- ECI created by Auto Scaling will terminate soon after created HOT 2
- I can not create the new type of RabbitMQ Instance with terraform.
- resource named alicloud_cdn_domain in the official terraform documentation not found HOT 1
- The validator of `alicloud_cdn_domain_new.sources.port` is incorrect
- plugin crashed when create ECI contaienr group
- test
- alicloud_vpn_gateway is not identifying the vswitch_id
- alicloud_ecs_key_pair_attachment rewrites in for_each loop HOT 5
- oss_bucket 不支持设置资源组 HOT 1
- oss_bucket 不支持开通HDFS服务 HOT 2
- alicloud_fc_custom_domain cert_config not support ssl in alicloud
- k8s集群pod虚拟交换机列表最大只支持10个元素 HOT 1
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.