Skip to content

Instantly share code, notes, and snippets.

@miry
Created June 14, 2018 09:19
Show Gist options
  • Save miry/fba19952a4cf5388d9f82e924d24039c to your computer and use it in GitHub Desktop.
Save miry/fba19952a4cf5388d9f82e924d24039c to your computer and use it in GitHub Desktop.
locals {
virginia_k8s_111_node_ec2_tags = [
{
key = "k8s.io/cluster-autoscaler/enabled"
value = "true"
propagate_at_launch = false
},
{
key = "kubernetes.io/cluster/${var.virginia_k8s_111_name}"
value = "${var.virginia_k8s_111_name}"
propagate_at_launch = true
},
{
propagate_at_launch = true
key = "Role"
value = "k8s-node"
},
{
propagate_at_launch = true
key = "Name"
value = "k8s-${var.virginia_k8s_111_name}-node"
},
{
propagate_at_launch = true
key = "Cluster"
value = "k8s-${var.virginia_k8s_111_name}"
},
{
propagate_at_launch = true
key = "KubernetesCluster"
value = "${var.virginia_k8s_111_name}"
},
{
propagate_at_launch = true
key = "Terraform"
value = "true"
},
{
propagate_at_launch = true
key = "K8SVersion"
value = "${var.virginia_k8s_111_k8s_version}"
},
{
propagate_at_launch = true
key = "Version"
value = "${var.virginia_k8s_111_version}"
},
]
}
locals {
k8s_111_edge_ec2_tag_name = [
{
propagate_at_launch = true
key = "Name"
value = "k8s-${var.virginia_k8s_111_name}-node-edge"
},
{
propagate_at_launch = true
key = "Role"
value = "k8s-node-edge"
},
],
virginia_k8s_111_node_edge_ec2_tags = "${concat(local.virginia_k8s_111_node_ec2_tags, local.k8s_111_edge_ec2_tag_name)}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment