Initializing provider plugins... - Checking for available provider plugins... - Downloading plugin for provider "alicloud" (hashicorp/alicloud) 1.233.0...
The following providers do not have any version constraints in configuration, so the latest version was installed.
To prevent automatic upgrades to new major versions that may contain breaking changes, it is recommended to add version = "..." constraints to the corresponding provider blocks in configuration, with the constraint strings suggested below.
* provider.alicloud: version = "~> 1.233"
Warning: registry.terraform.io: For users on Terraform 0.13 or greater, this provider has moved to aliyun/alicloud. Please update your source in required_providers.
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see any changes that are required for your infrastructure. All Terraform commands should now work.
If you ever set or change modules or backend configuration for Terraform, rerun this command to reinitialize your working directory. If you forget, other commands will detect it and remind you to do so if necessary. shell@Alicloud:~/terraform-project$ terraform plan Refreshing Terraform state in-memory prior to plan... The refreshed state will be used to calculate this plan, but will not be persisted to local or remote state storage.
An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: + create
Terraform will perform the following actions:
# alicloud_instance.instance will be created + resource "alicloud_instance" "instance" { + availability_zone = "cn-huhehaote-a" + cpu = (known after apply) + create_time = (known after apply) + credit_specification = (known after apply) + deletion_protection = false + deployment_set_group_no = (known after apply) + description = (known after apply) + dry_run = false + enable_jumbo_frame = (known after apply) + expired_time = (known after apply) + host_name = (known after apply) + http_endpoint = (known after apply) + http_put_response_hop_limit = (known after apply) + http_tokens = (known after apply) + id = (known after apply) + image_id = "centos_7_9_x64_20G_alibase_20240628.vhd" + instance_charge_type = (known after apply) + instance_name = "test_foo" + instance_type = "ecs.e-c1m1.large" + internet_charge_type = (known after apply) + internet_max_bandwidth_in = (known after apply) + internet_max_bandwidth_out = 10 + io_optimized = (known after apply) + ipv6_address_count = (known after apply) + ipv6_addresses = (known after apply) + key_name = (known after apply) + maintenance_action = (known after apply) + memory = (known after apply) + network_interface_id = (known after apply) + network_interface_traffic_mode = (known after apply) + os_name = (known after apply) + os_type = (known after apply) + period = (known after apply) + primary_ip_address = (known after apply) + private_ip = (known after apply) + public_ip = (known after apply) + resource_group_id = (known after apply) + role_name = (known after apply) + secondary_private_ip_address_count = (known after apply) + secondary_private_ips = (known after apply) + security_enhancement_strategy = (known after apply) + security_groups = (known after apply) + spot_duration = (known after apply) + spot_price_limit = (known after apply) + spot_strategy = (known after apply) + start_time = (known after apply) + status = (known after apply) + stopped_mode = (known after apply) + subnet_id = (known after apply) + system_disk_category = "cloud_efficiency" + system_disk_description = (known after apply) + system_disk_encrypted = (known after apply) + system_disk_id = (known after apply) + system_disk_name = (known after apply) + system_disk_performance_level = (known after apply) + system_disk_size = (known after apply) + volume_tags = (known after apply) + vpc_id = (known after apply) + vswitch_id = (known after apply)
+ network_interfaces { + network_card_index = (known after apply) + network_interface_id = (known after apply) + network_interface_traffic_mode = (known after apply) + queue_pair_number = (known after apply) + security_group_ids = (known after apply) + vswitch_id = (known after apply) } }
# alicloud_security_group.default will be created + resource "alicloud_security_group" "default" { + id = (known after apply) + inner_access = (known after apply) + inner_access_policy = (known after apply) + name = "default" + security_group_type = (known after apply) + vpc_id = (known after apply) }
# alicloud_security_group_rule.allow_all_tcp will be created + resource "alicloud_security_group_rule" "allow_all_tcp" { + cidr_ip = "0.0.0.0/0" + id = (known after apply) + ip_protocol = "tcp" + nic_type = "intranet" + policy = "accept" + port_range = "1/65535" + prefix_list_id = (known after apply) + priority = 1 + security_group_id = (known after apply) + type = "ingress" }
# alicloud_vpc.vpc will be created + resource "alicloud_vpc" "vpc" { + cidr_block = "172.16.0.0/12" + create_time = (known after apply) + id = (known after apply) + ipv6_cidr_block = (known after apply) + ipv6_cidr_blocks = (known after apply) + name = (known after apply) + resource_group_id = (known after apply) + route_table_id = (known after apply) + router_id = (known after apply) + router_table_id = (known after apply) + secondary_cidr_blocks = (known after apply) + status = (known after apply) + user_cidrs = (known after apply) + vpc_name = "tf_test_foo" }
# alicloud_vswitch.vsw will be created + resource "alicloud_vswitch" "vsw" { + availability_zone = (known after apply) + cidr_block = "172.16.0.0/21" + create_time = (known after apply) + id = (known after apply) + ipv6_cidr_block = (known after apply) + ipv6_cidr_block_mask = (known after apply) + name = (known after apply) + status = (known after apply) + vpc_id = (known after apply) + vswitch_name = (known after apply) + zone_id = "cn-huhehaote-a" }
Note: You didn't specify an "-out" parameter to save this plan, so Terraform can't guarantee that exactly these actions will be performed if "terraform apply" is subsequently run.
Plan: 5 to add, 0 to change, 0 to destroy.
Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve.
Enter a value: yes
alicloud_vpc.vpc: Creating... alicloud_vpc.vpc: Creation complete after 6s [id=vpc-hp31tfk65xzegpb8tsyuh] alicloud_security_group.default: Creating... alicloud_vswitch.vsw: Creating... alicloud_security_group.default: Creation complete after 1s [id=sg-hp30eo4i39oj1ke5gnr5] alicloud_security_group_rule.allow_all_tcp: Creating... alicloud_security_group_rule.allow_all_tcp: Creation complete after 1s [id=sg-hp30eo4i39oj1ke5gnr5:ingress:tcp:1/65535:intranet:0.0.0.0/0:accept:1] alicloud_vswitch.vsw: Creation complete after 4s [id=vsw-hp32rwyzfj6r21d7bupme] alicloud_instance.instance: Creating...