Skip to content
New issue

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

The argument "worker_vswitch_ids" is required, but no definition was found. #3

Open
click2cloud-vivekg opened this issue Aug 12, 2020 · 0 comments

Comments

@click2cloud-vivekg
Copy link

click2cloud-vivekg commented Aug 12, 2020

Error: Missing required argument

on main.tf line 848, in resource "alicloud_cs_managed_kubernetes" "ack":
848: resource "alicloud_cs_managed_kubernetes" "ack" {

The argument "worker_vswitch_ids" is required, but no definition was found.

Create the managed Kubernetes cluster

resource "alicloud_cs_managed_kubernetes" "ack" {
count = var.enable_alibaba ? 1 : 0

name = "${var.ack_name}-${random_id.cluster_name[count.index].hex}"
vswitch_ids = alicloud_vswitch.vswitches..id
new_nat_gateway = true
worker_instance_types = var.ack_node_types.

worker_number = var.ack_node_count
key_name = alicloud_key_pair.publickey[count.index].key_name
pod_cidr = var.ack_k8s_pod_cidr
service_cidr = var.ack_k8s_service_cidr
install_cloud_monitor = true
slb_internet_enabled = true
cluster_network_type = var.ack_k8s_cni
kube_config = "./kubeconfig_ack"

force_update = true

depends_on = [alicloud_snat_entry.default]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant