aws: make CCM work

This commit is contained in:
Leonard Cohnen 2022-10-30 03:40:06 +01:00 committed by 3u13r
parent 828923d159
commit 0d0191ba4d
2 changed files with 13 additions and 6 deletions

View file

@ -21,9 +21,10 @@ resource "aws_launch_template" "launch_template" {
}
vpc_security_group_ids = var.security_groups
metadata_options {
http_endpoint = "enabled"
http_tokens = "required"
instance_metadata_tags = "enabled"
http_endpoint = "enabled"
http_tokens = "required"
instance_metadata_tags = "enabled"
http_put_response_hop_limit = 2
}
block_device_mappings {
@ -71,4 +72,10 @@ resource "aws_autoscaling_group" "control_plane_autoscaling_group" {
value = var.uid
propagate_at_launch = true
}
tag {
key = "KubernetesCluster"
value = "Constellation-${var.uid}"
propagate_at_launch = true
}
}