diff --git a/terraform/aws/analytical-platform-data-production/airflow/launch-templates.tf b/terraform/aws/analytical-platform-data-production/airflow/launch-templates.tf index 8c114aeb45..b6f576ba0d 100644 --- a/terraform/aws/analytical-platform-data-production/airflow/launch-templates.tf +++ b/terraform/aws/analytical-platform-data-production/airflow/launch-templates.tf @@ -102,124 +102,6 @@ resource "aws_launch_template" "dev_high_memory" { } } -resource "aws_launch_template" "sandpit_standard" { - name = "eks-dcc306aa-0520-d4e7-1ef0-b26027ceb6da" - image_id = "ami-0aa9fe9eb35cf4eaf" - instance_type = "t3a.small" - - disable_api_stop = false - disable_api_termination = false - - security_group_names = [] - - user_data = "TUlNRS1WZXJzaW9uOiAxLjAKQ29udGVudC1UeXBlOiBtdWx0aXBhcnQvbWl4ZWQ7IGJvdW5kYXJ5PSIvLyIKCi0tLy8KQ29udGVudC1UeXBlOiB0ZXh0L3gtc2hlbGxzY3JpcHQ7IGNoYXJzZXQ9InVzLWFzY2lpIgojIS9iaW4vYmFzaApzZXQgLWV4CkI2NF9DTFVTVEVSX0NBPUxTMHRMUzFDUlVkSlRpQkRSVkpVU1VaSlEwRlVSUzB0TFMwdENrMUpTVU12YWtORFFXVmhaMEYzU1VKQlowbENRVVJCVGtKbmEzRm9hMmxIT1hjd1FrRlJjMFpCUkVGV1RWSk5kMFZSV1VSV1VWRkVSWGR3Y21SWFNtd0tZMjAxYkdSSFZucE5RalJZUkZSSmVrMUVTWGROVkVVd1RWUkJlRTFXYjFoRVZFMTZUVVJGZVU5VVJUQk5WRUY0VFZadmQwWlVSVlJOUWtWSFFURlZSUXBCZUUxTFlUTldhVnBZU25WYVdGSnNZM3BEUTBGVFNYZEVVVmxLUzI5YVNXaDJZMDVCVVVWQ1FsRkJSR2RuUlZCQlJFTkRRVkZ2UTJkblJVSkJURzFIQ2tsWk1IUXpRVGxFUlc1blRtVklLMk16ZURWcmNURlNMMGRqUTBKaFQwSTVlRTh2ZUdaTVZVRnhSazFvY21sME5XZDBkVFZVT0VsTGMzV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"/dev/xvda" - ebs { - delete_on_termination = "true" - iops = 0 - throughput = 125 - volume_size = 20 - volume_type = "gp2" - } - } - - iam_instance_profile { - name = "eks-dcc306aa-0520-d4e7-1ef0-b26027ceb6da" - } - - metadata_options { - http_put_response_hop_limit = 2 - http_tokens = "optional" - } - - network_interfaces { - device_index = 0 - ipv4_address_count = 0 - ipv4_addresses = [] - ipv4_prefix_count = 0 - ipv4_prefixes = [] - ipv6_address_count = 0 - ipv6_addresses = [] - ipv6_prefix_count = 0 - ipv6_prefixes = [] - network_card_index = 0 - security_groups = [ - "sg-0aa6fbd5f564dc793" - ] - } - - tags = { - "eks:cluster-name" = "airflow-sandpit" - "eks:nodegroup-name" = "standard" - } -} - -import { - to = aws_launch_template.sandpit_standard - id = "lt-0511e4a02a5dc055d" -} - -resource "aws_launch_template" "sandpit_high_memory" { - name = "eks-50c306aa-05d8-6b86-cfe1-6007657b8987" - image_id = "ami-0aa9fe9eb35cf4eaf" - instance_type = "r6i.4xlarge" - - disable_api_stop = false - disable_api_termination = false - - security_group_names = [] - - user_data = "TUlNRS1WZXJzaW9uOiAxLjAKQ29udGVudC1UeXBlOiBtdWx0aXBhcnQvbWl4ZWQ7IGJvdW5kYXJ5PSIvLyIKCi0tLy8KQ29udGVudC1UeXBlOiB0ZXh0L3gtc2hlbGxzY3JpcHQ7IGNoYXJzZXQ9InVzLWFzY2lpIgojIS9iaW4vYmFzaApzZXQgLWV4CkI2NF9DTFVTVEVSX0NBPUxTMHRMUzFDUlVkSlRpQkRSVkpVU1VaSlEwRlVSUzB0TFMwdENrMUpTVU12YWtORFFXVmhaMEYzU1VKQlowbENRVVJCVGtKbmEzRm9hMmxIT1hjd1FrRlJjMFpCUkVGV1RWSk5kMFZSV1VSV1VWRkVSWGR3Y21SWFNtd0tZMjAxYkdSSFZucE5RalJZUkZSSmVrMUVTWGROVkVVd1RWUkJlRTFXYjFoRVZFMTZUVVJGZVU5VVJUQk5WRUY0VFZadmQwWlVSVlJOUWtWSFFURl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9ub2RlZ3JvdXA9aGlnaC1tZW1vcnkgLS1yZWdpc3Rlci13aXRoLXRhaW50cz1oaWdoLW1lbW9yeT10cnVlOk5vU2NoZWR1bGUgLS1tYXgtcG9kcz0xMTAnIC0tYjY0LWNsdXN0ZXItY2EgJEI2NF9DTFVTVEVSX0NBIC0tYXBpc2VydmVyLWVuZHBvaW50ICRBUElfU0VSVkVSX1VSTCAtLWRucy1jbHVzdGVyLWlwICRLOFNfQ0xVU1RFUl9ETlNfSVAgLS11c2UtbWF4LXBvZHMgZmFsc2UKCi0tLy8tLQ==" - - block_device_mappings { - device_name = "/dev/xvda" - ebs { - delete_on_termination = "true" - iops = 0 - throughput = 125 - volume_size = 20 - volume_type = "gp2" - } - } - - iam_instance_profile { - name = "eks-50c306aa-05d8-6b86-cfe1-6007657b8987" - } - - metadata_options { - http_put_response_hop_limit = 2 - http_tokens = "optional" - } - - network_interfaces { - device_index = 0 - ipv4_address_count = 0 - ipv4_addresses = [] - ipv4_prefix_count = 0 - ipv4_prefixes = [] - ipv6_address_count = 0 - ipv6_addresses = [] - ipv6_prefix_count = 0 - ipv6_prefixes = [] - network_card_index = 0 - security_groups = [ - "sg-0aa6fbd5f564dc793" - ] - } - - tags = { - "eks:cluster-name" = "airflow-sandpit" - "eks:nodegroup-name" = "high-memory" - } -} - -import { - to = aws_launch_template.sandpit_high_memory - id = "lt-0ba6601ac92732c39" -} - resource "aws_launch_template" "prod_standard" { name = "prod_standard" image_id = "ami-03857889452e262ff"