Skip to content

Instantly share code, notes, and snippets.

@cbiphuk
Created October 19, 2022 17:05
Show Gist options
  • Save cbiphuk/1985b490a7c5c6d5ae9920163090c10a to your computer and use it in GitHub Desktop.
Save cbiphuk/1985b490a7c5c6d5ae9920163090c10a to your computer and use it in GitHub Desktop.
Terraform will perform the following actions:
# module.icecream_scheduler.aws_autoscaling_group.this will be updated in-place
~ resource "aws_autoscaling_group" "this" {
+ force_delete = false
+ force_delete_warm_pool = false
id = "iceccd_scheduler_asg"
- launch_configuration = "terraform-20221018185708540800000001" -> null
name = "iceccd_scheduler_asg"
~ target_group_arns = [
- "arn:aws:elasticloadbalancing:us-east-1:557821124784:targetgroup/icecc-scheduler-tgroup-10245/01723c91eb1980b9",
# (2 unchanged elements hidden)
]
+ wait_for_capacity_timeout = "10m"
# (18 unchanged attributes hidden)
+ launch_template {
+ id = (known after apply)
+ version = "$Latest"
}
- tag {
- key = "Env" -> null
- propagate_at_launch = true -> null
- value = "production" -> null
}
- tag {
- key = "Name" -> null
- propagate_at_launch = true -> null
- value = "iceccd-scheduler-asg" -> null
}
# (2 unchanged blocks hidden)
}
# module.icecream_scheduler.aws_launch_template.this will be created
+ resource "aws_launch_template" "this" {
+ arn = (known after apply)
+ default_version = (known after apply)
+ id = (known after apply)
+ image_id = "ami-094f380725f62923a"
+ instance_type = "c5.4xlarge"
+ key_name = "mci"
+ latest_version = (known after apply)
+ name = "iceccd_scheduler_lt"
+ name_prefix = (known after apply)
+ tags_all = {
+ "Environment" = "Production"
+ "Name" = "icecc-scheduler"
+ "Service" = "icecc"
+ "github_html_url" = "https://github.com/10gen/terraform-aws-icecream"
+ "owner" = "Build"
+ "terraform" = "True"
}
+ user_data = "IyEvYmluL2Jhc2gKc3VkbyBhZGQtYXB0LXJlcG9zaXRvcnkgcHBhOm1vbmdvZGItZGV2LXByb2QvbW9uZ29kYi1idWlsZCAteQpzdWRvIGFwdC1nZXQgdXBkYXRlIC15CnN1ZG8gYXB0LWdldCBpbnN0YWxsIGljZWNjIC15CnN1ZG8gYXB0LWdldCB1cGdyYWRlIGljZWNjIC15CnN1ZG8gYXB0LWdldCBpbnN0YWxsIGJ1aWxkLWVzc2VudGlhbCAteQpzdWRvIHNlcnZpY2UgaWNlY2Mtc2NoZWR1bGVyIHN0YXJ0Cg=="
+ vpc_security_group_ids = (known after apply)
+ block_device_mappings {
+ device_name = "/dev/sda1"
+ ebs {
+ iops = (known after apply)
+ throughput = (known after apply)
+ volume_size = 16
+ volume_type = "gp3"
}
}
+ metadata_options {
+ http_endpoint = (known after apply)
+ http_protocol_ipv6 = (known after apply)
+ http_put_response_hop_limit = (known after apply)
+ http_tokens = (known after apply)
+ instance_metadata_tags = (known after apply)
}
}
# module.icecream_scheduler.aws_lb.this will be updated in-place
~ resource "aws_lb" "this" {
id = "arn:aws:elasticloadbalancing:us-east-1:557821124784:loadbalancer/net/iceccd-scheduler-lb/bdb68f2d67839cc9"
name = "iceccd-scheduler-lb"
~ tags = {
- "Env" = "production" -> null
- "Name" = "icecc-scheduler-lb" -> null
}
~ tags_all = {
- "Env" = "production" -> null
+ "Environment" = "Production"
~ "Name" = "icecc-scheduler-lb" -> "icecc-scheduler"
+ "Service" = "icecc"
+ "github_html_url" = "https://github.com/10gen/terraform-aws-icecream"
+ "owner" = "Build"
+ "terraform" = "True"
}
# (12 unchanged attributes hidden)
# (4 unchanged blocks hidden)
}
# module.icecream_scheduler.aws_lb_listener.this_listener_10245 will be destroyed
# (because aws_lb_listener.this_listener_10245 is not in configuration)
- resource "aws_lb_listener" "this_listener_10245" {
- arn = "arn:aws:elasticloadbalancing:us-east-1:557821124784:listener/net/iceccd-scheduler-lb/bdb68f2d67839cc9/338cea9c3ba4d167" -> null
- id = "arn:aws:elasticloadbalancing:us-east-1:557821124784:listener/net/iceccd-scheduler-lb/bdb68f2d67839cc9/338cea9c3ba4d167" -> null
- load_balancer_arn = "arn:aws:elasticloadbalancing:us-east-1:557821124784:loadbalancer/net/iceccd-scheduler-lb/bdb68f2d67839cc9" -> null
- port = 10245 -> null
- protocol = "TCP" -> null
- tags = {} -> null
- tags_all = {} -> null
- default_action {
- order = 1 -> null
- target_group_arn = "arn:aws:elasticloadbalancing:us-east-1:557821124784:targetgroup/icecc-scheduler-tgroup-10245/01723c91eb1980b9" -> null
- type = "forward" -> null
}
- timeouts {}
}
# module.icecream_scheduler.aws_lb_listener.this_listener_8765 will be updated in-place
~ resource "aws_lb_listener" "this_listener_8765" {
id = "arn:aws:elasticloadbalancing:us-east-1:557821124784:listener/net/iceccd-scheduler-lb/bdb68f2d67839cc9/153f65b2c3cf4dfb"
tags = {}
~ tags_all = {
+ "Environment" = "Production"
+ "Name" = "icecc-scheduler"
+ "Service" = "icecc"
+ "github_html_url" = "https://github.com/10gen/terraform-aws-icecream"
+ "owner" = "Build"
+ "terraform" = "True"
}
# (4 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
# module.icecream_scheduler.aws_lb_listener.this_listener_8766 will be updated in-place
~ resource "aws_lb_listener" "this_listener_8766" {
id = "arn:aws:elasticloadbalancing:us-east-1:557821124784:listener/net/iceccd-scheduler-lb/bdb68f2d67839cc9/cf030f57aaaa9a7b"
tags = {}
~ tags_all = {
+ "Environment" = "Production"
+ "Name" = "icecc-scheduler"
+ "Service" = "icecc"
+ "github_html_url" = "https://github.com/10gen/terraform-aws-icecream"
+ "owner" = "Build"
+ "terraform" = "True"
}
# (4 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
# module.icecream_scheduler.aws_lb_target_group.iceccd_scheduler_target_group_10245 will be destroyed
# (because aws_lb_target_group.iceccd_scheduler_target_group_10245 is not in configuration)
- resource "aws_lb_target_group" "iceccd_scheduler_target_group_10245" {
- arn = "arn:aws:elasticloadbalancing:us-east-1:557821124784:targetgroup/icecc-scheduler-tgroup-10245/01723c91eb1980b9" -> null
- arn_suffix = "targetgroup/icecc-scheduler-tgroup-10245/01723c91eb1980b9" -> null
- connection_termination = false -> null
- deregistration_delay = "300" -> null
- id = "arn:aws:elasticloadbalancing:us-east-1:557821124784:targetgroup/icecc-scheduler-tgroup-10245/01723c91eb1980b9" -> null
- name = "icecc-scheduler-tgroup-10245" -> null
- port = 10245 -> null
- preserve_client_ip = "true" -> null
- protocol = "TCP" -> null
- proxy_protocol_v2 = false -> null
- tags = {} -> null
- tags_all = {} -> null
- target_type = "instance" -> null
- vpc_id = "vpc-1c16ea64" -> null
- health_check {
- enabled = true -> null
- healthy_threshold = 2 -> null
- interval = 10 -> null
- port = "8766" -> null
- protocol = "TCP" -> null
- timeout = 10 -> null
- unhealthy_threshold = 2 -> null
}
- stickiness {
- cookie_duration = 0 -> null
- enabled = false -> null
- type = "source_ip" -> null
}
}
# module.icecream_scheduler.aws_lb_target_group.iceccd_scheduler_target_group_8765 will be updated in-place
~ resource "aws_lb_target_group" "iceccd_scheduler_target_group_8765" {
id = "arn:aws:elasticloadbalancing:us-east-1:557821124784:targetgroup/icecc-scheduler-tgroup-8765/471e8cfa3c1fdeaa"
+ lambda_multi_value_headers_enabled = false
name = "icecc-scheduler-tgroup-8765"
+ slow_start = 0
tags = {}
~ tags_all = {
+ "Environment" = "Production"
+ "Name" = "icecc-scheduler"
+ "Service" = "icecc"
+ "github_html_url" = "https://github.com/10gen/terraform-aws-icecream"
+ "owner" = "Build"
+ "terraform" = "True"
}
# (10 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
# module.icecream_scheduler.aws_lb_target_group.iceccd_scheduler_target_group_8766 will be updated in-place
~ resource "aws_lb_target_group" "iceccd_scheduler_target_group_8766" {
id = "arn:aws:elasticloadbalancing:us-east-1:557821124784:targetgroup/icecc-scheduler-tgroup-8766/019f6f30908374ad"
+ lambda_multi_value_headers_enabled = false
name = "icecc-scheduler-tgroup-8766"
+ slow_start = 0
tags = {}
~ tags_all = {
+ "Environment" = "Production"
+ "Name" = "icecc-scheduler"
+ "Service" = "icecc"
+ "github_html_url" = "https://github.com/10gen/terraform-aws-icecream"
+ "owner" = "Build"
+ "terraform" = "True"
}
# (10 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
# module.icecream_scheduler.aws_route53_record.this will be updated in-place
~ resource "aws_route53_record" "this" {
id = "Z0318557LG7NARGGA6R3_iceccd.production.build.10gen.cc_CNAME_us_east_lb"
name = "iceccd.production.build.10gen.cc"
~ set_identifier = "us_east_lb" -> "us-east-1"
# (5 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# module.icecream_scheduler.aws_security_group.this will be created
+ resource "aws_security_group" "this" {
+ arn = (known after apply)
+ description = "Security group for icecream cluster communication"
+ egress = [
+ {
+ cidr_blocks = [
+ "0.0.0.0/0",
]
+ description = ""
+ from_port = 0
+ ipv6_cidr_blocks = [
+ "::/0",
]
+ prefix_list_ids = []
+ protocol = "-1"
+ security_groups = []
+ self = false
+ to_port = 0
},
]
+ id = (known after apply)
+ ingress = [
+ {
+ cidr_blocks = [
+ "10.122.0.0/16",
]
+ description = "icecc-scheduler friendly"
+ from_port = 8766
+ ipv6_cidr_blocks = []
+ prefix_list_ids = []
+ protocol = "tcp"
+ security_groups = []
+ self = false
+ to_port = 8766
},
+ {
+ cidr_blocks = [
+ "10.122.0.0/16",
]
+ description = "icecc-scheduler"
+ from_port = 8765
+ ipv6_cidr_blocks = []
+ prefix_list_ids = []
+ protocol = "tcp"
+ security_groups = []
+ self = false
+ to_port = 8765
},
+ {
+ cidr_blocks = [
+ "10.122.0.0/16",
]
+ description = "ssh access from vpc"
+ from_port = 22
+ ipv6_cidr_blocks = []
+ prefix_list_ids = []
+ protocol = "tcp"
+ security_groups = []
+ self = false
+ to_port = 22
},
+ {
+ cidr_blocks = []
+ description = "SSH access from VPC"
+ from_port = 22
+ ipv6_cidr_blocks = []
+ prefix_list_ids = []
+ protocol = "tcp"
+ security_groups = []
+ self = true
+ to_port = 22
},
+ {
+ cidr_blocks = []
+ description = "icecc-scheduler"
+ from_port = 8765
+ ipv6_cidr_blocks = []
+ prefix_list_ids = []
+ protocol = "tcp"
+ security_groups = []
+ self = true
+ to_port = 8765
},
+ {
+ cidr_blocks = []
+ description = "icecc-scheduler-friendly"
+ from_port = 8766
+ ipv6_cidr_blocks = []
+ prefix_list_ids = []
+ protocol = "tcp"
+ security_groups = []
+ self = true
+ to_port = 8766
},
]
+ name = (known after apply)
+ name_prefix = "icecream"
+ owner_id = (known after apply)
+ revoke_rules_on_delete = false
+ tags_all = {
+ "Environment" = "Production"
+ "Name" = "icecc-scheduler"
+ "Service" = "icecc"
+ "github_html_url" = "https://github.com/10gen/terraform-aws-icecream"
+ "owner" = "Build"
+ "terraform" = "True"
}
+ vpc_id = "vpc-1c16ea64"
}
Plan: 2 to add, 7 to change, 2 to destroy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment