asing239@LUK-PG0129ZY MINGW64 /c/D_DRIVE/RUN_AWAY/Teraform/FASHION_CLOUD (master) $ terraform apply var.key_name Name of the SSH keypair to use in AWS. Enter a value: travel An execution plan has been generated and is shown below. Resource actions are indicated with the following symbols: + create Terraform will perform the following actions: + aws_elb.web id: arn: availability_zones.#: connection_draining: "true" connection_draining_timeout: "400" cross_zone_load_balancing: "true" dns_name: health_check.#: "1" health_check.0.healthy_threshold: "2" health_check.0.interval: "30" health_check.0.target: "HTTP:80/" health_check.0.timeout: "3" health_check.0.unhealthy_threshold: "2" idle_timeout: "400" instances.#: internal: listener.#: "1" listener.1237843950.instance_port: "80" listener.1237843950.instance_protocol: "http" listener.1237843950.lb_port: "80" listener.1237843950.lb_protocol: "http" listener.1237843950.ssl_certificate_id: "" name: "hello-elb" security_groups.#: source_security_group: source_security_group_id: subnets.#: zone_id: + aws_instance.web[0] id: ami: "ami-01e24be29428c15b2" arn: associate_public_ip_address: availability_zone: cpu_core_count: cpu_threads_per_core: ebs_block_device.#: ephemeral_block_device.#: get_password_data: "false" host_id: instance_state: instance_type: "t2.micro" ipv6_address_count: ipv6_addresses.#: key_name: "travel" network_interface.#: network_interface_id: password_data: placement_group: primary_network_interface_id: private_dns: private_ip: public_dns: public_ip: root_block_device.#: security_groups.#: source_dest_check: "true" subnet_id: "${aws_subnet.tf_test_subnet.id}" tags.%: "1" tags.Name: "HelloWorld" tenancy: user_data: "75d20e06979b7b9d103da3f66e4590e217520b28" volume_tags.%: vpc_security_group_ids.#: + aws_instance.web[1] id: ami: "ami-01e24be29428c15b2" arn: associate_public_ip_address: availability_zone: cpu_core_count: cpu_threads_per_core: ebs_block_device.#: ephemeral_block_device.#: get_password_data: "false" host_id: instance_state: instance_type: "t2.micro" ipv6_address_count: ipv6_addresses.#: key_name: "travel" network_interface.#: network_interface_id: password_data: placement_group: primary_network_interface_id: private_dns: private_ip: public_dns: public_ip: root_block_device.#: security_groups.#: source_dest_check: "true" subnet_id: "${aws_subnet.tf_test_subnet.id}" tags.%: "1" tags.Name: "HelloWorld" tenancy: user_data: "75d20e06979b7b9d103da3f66e4590e217520b28" volume_tags.%: vpc_security_group_ids.#: + aws_internet_gateway.gw id: owner_id: tags.%: "1" tags.Name: "tf_test_ig" vpc_id: "${aws_vpc.default.id}" + aws_lb_cookie_stickiness_policy.default id: cookie_expiration_period: "600" lb_port: "80" load_balancer: "${aws_elb.web.id}" name: "lbpolicy" + aws_route_table.r id: owner_id: propagating_vgws.#: route.#: "1" route.~966145399.cidr_block: "0.0.0.0/0" route.~966145399.egress_only_gateway_id: "" route.~966145399.gateway_id: "${aws_internet_gateway.gw.id}" route.~966145399.instance_id: "" route.~966145399.ipv6_cidr_block: "" route.~966145399.nat_gateway_id: "" route.~966145399.network_interface_id: "" route.~966145399.transit_gateway_id: "" route.~966145399.vpc_peering_connection_id: "" tags.%: "1" tags.Name: "aws_route_table" vpc_id: "${aws_vpc.default.id}" + aws_route_table_association.a id: route_table_id: "${aws_route_table.r.id}" subnet_id: "${aws_subnet.tf_test_subnet.id}" + aws_security_group.default id: arn: description: "Used in the terraform" egress.#: "1" egress.482069346.cidr_blocks.#: "1" egress.482069346.cidr_blocks.0: "0.0.0.0/0" egress.482069346.description: "" egress.482069346.from_port: "0" egress.482069346.ipv6_cidr_blocks.#: "0" egress.482069346.prefix_list_ids.#: "0" egress.482069346.protocol: "-1" egress.482069346.security_groups.#: "0" egress.482069346.self: "false" egress.482069346.to_port: "0" ingress.#: "2" ingress.1753530290.cidr_blocks.#: "1" ingress.1753530290.cidr_blocks.0: "0.0.0.0/0" ingress.1753530290.description: "" ingress.1753530290.from_port: "22" ingress.1753530290.ipv6_cidr_blocks.#: "0" ingress.1753530290.prefix_list_ids.#: "0" ingress.1753530290.protocol: "tcp" ingress.1753530290.security_groups.#: "0" ingress.1753530290.self: "false" ingress.1753530290.to_port: "22" ingress.~1145654509.cidr_blocks.#: "0" ingress.~1145654509.description: "" ingress.~1145654509.from_port: "80" ingress.~1145654509.ipv6_cidr_blocks.#: "0" ingress.~1145654509.prefix_list_ids.#: "0" ingress.~1145654509.protocol: "tcp" ingress.~1145654509.security_groups.#: ingress.~1145654509.self: "false" ingress.~1145654509.to_port: "80" name: "ec2_sg" owner_id: revoke_rules_on_delete: "false" vpc_id: "${aws_vpc.default.id}" + aws_security_group.elb id: arn: description: "Used in the terraform" egress.#: "1" egress.482069346.cidr_blocks.#: "1" egress.482069346.cidr_blocks.0: "0.0.0.0/0" egress.482069346.description: "" egress.482069346.from_port: "0" egress.482069346.ipv6_cidr_blocks.#: "0" egress.482069346.prefix_list_ids.#: "0" egress.482069346.protocol: "-1" egress.482069346.security_groups.#: "0" egress.482069346.self: "false" egress.482069346.to_port: "0" ingress.#: "1" ingress.2080286321.cidr_blocks.#: "1" ingress.2080286321.cidr_blocks.0: "0.0.0.0/0" ingress.2080286321.description: "" ingress.2080286321.from_port: "80" ingress.2080286321.ipv6_cidr_blocks.#: "0" ingress.2080286321.prefix_list_ids.#: "0" ingress.2080286321.protocol: "tcp" ingress.2080286321.security_groups.#: "0" ingress.2080286321.self: "false" ingress.2080286321.to_port: "80" name: "hello_elb_sg" owner_id: revoke_rules_on_delete: "false" vpc_id: "${aws_vpc.default.id}" + aws_subnet.tf_test_subnet id: arn: assign_ipv6_address_on_creation: "false" availability_zone: availability_zone_id: cidr_block: "10.0.0.0/24" ipv6_cidr_block: ipv6_cidr_block_association_id: map_public_ip_on_launch: "true" owner_id: tags.%: "1" tags.Name: "tf_test_subnet" vpc_id: "${aws_vpc.default.id}" + aws_vpc.default id: arn: assign_generated_ipv6_cidr_block: "false" cidr_block: "10.0.0.0/16" default_network_acl_id: default_route_table_id: default_security_group_id: dhcp_options_id: enable_classiclink: enable_classiclink_dns_support: enable_dns_hostnames: "true" enable_dns_support: "true" instance_tenancy: "default" ipv6_association_id: ipv6_cidr_block: main_route_table_id: owner_id: tags.%: "1" tags.Name: "tf_test" Plan: 11 to add, 0 to change, 0 to destroy. Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve. Enter a value: yes aws_vpc.default: Creating... arn: "" => "" assign_generated_ipv6_cidr_block: "" => "false" cidr_block: "" => "10.0.0.0/16" default_network_acl_id: "" => "" default_route_table_id: "" => "" default_security_group_id: "" => "" dhcp_options_id: "" => "" enable_classiclink: "" => "" enable_classiclink_dns_support: "" => "" enable_dns_hostnames: "" => "true" enable_dns_support: "" => "true" instance_tenancy: "" => "default" ipv6_association_id: "" => "" ipv6_cidr_block: "" => "" main_route_table_id: "" => "" owner_id: "" => "" tags.%: "" => "1" tags.Name: "" => "tf_test" aws_vpc.default: Still creating... (10s elapsed) aws_vpc.default: Creation complete after 12s (ID: vpc-0af2a61b9f27eeaf6) aws_internet_gateway.gw: Creating... owner_id: "" => "" tags.%: "0" => "1" tags.Name: "" => "tf_test_ig" vpc_id: "" => "vpc-0af2a61b9f27eeaf6" aws_subnet.tf_test_subnet: Creating... arn: "" => "" assign_ipv6_address_on_creation: "" => "false" availability_zone: "" => "" availability_zone_id: "" => "" cidr_block: "" => "10.0.0.0/24" ipv6_cidr_block: "" => "" ipv6_cidr_block_association_id: "" => "" map_public_ip_on_launch: "" => "true" owner_id: "" => "" tags.%: "" => "1" tags.Name: "" => "tf_test_subnet" vpc_id: "" => "vpc-0af2a61b9f27eeaf6" aws_subnet.tf_test_subnet: Creation complete after 4s (ID: subnet-02ff184f0f44527c8) aws_internet_gateway.gw: Creation complete after 4s (ID: igw-01ed7855a46d56624) aws_route_table.r: Creating... owner_id: "" => "" propagating_vgws.#: "" => "" route.#: "" => "1" route.727083329.cidr_block: "" => "0.0.0.0/0" route.727083329.egress_only_gateway_id: "" => "" route.727083329.gateway_id: "" => "igw-01ed7855a46d56624" route.727083329.instance_id: "" => "" route.727083329.ipv6_cidr_block: "" => "" route.727083329.nat_gateway_id: "" => "" route.727083329.network_interface_id: "" => "" route.727083329.transit_gateway_id: "" => "" route.727083329.vpc_peering_connection_id: "" => "" tags.%: "" => "1" tags.Name: "" => "aws_route_table" vpc_id: "" => "vpc-0af2a61b9f27eeaf6" aws_security_group.elb: Creating... arn: "" => "" description: "" => "Used in the terraform" egress.#: "" => "1" egress.482069346.cidr_blocks.#: "" => "1" egress.482069346.cidr_blocks.0: "" => "0.0.0.0/0" egress.482069346.description: "" => "" egress.482069346.from_port: "" => "0" egress.482069346.ipv6_cidr_blocks.#: "" => "0" egress.482069346.prefix_list_ids.#: "" => "0" egress.482069346.protocol: "" => "-1" egress.482069346.security_groups.#: "" => "0" egress.482069346.self: "" => "false" egress.482069346.to_port: "" => "0" ingress.#: "" => "1" ingress.2080286321.cidr_blocks.#: "" => "1" ingress.2080286321.cidr_blocks.0: "" => "0.0.0.0/0" ingress.2080286321.description: "" => "" ingress.2080286321.from_port: "" => "80" ingress.2080286321.ipv6_cidr_blocks.#: "" => "0" ingress.2080286321.prefix_list_ids.#: "" => "0" ingress.2080286321.protocol: "" => "tcp" ingress.2080286321.security_groups.#: "" => "0" ingress.2080286321.self: "" => "false" ingress.2080286321.to_port: "" => "80" name: "" => "hello_elb_sg" owner_id: "" => "" revoke_rules_on_delete: "" => "false" vpc_id: "" => "vpc-0af2a61b9f27eeaf6" aws_route_table.r: Creation complete after 4s (ID: rtb-01d23b54bb5c76fbe) aws_route_table_association.a: Creating... route_table_id: "" => "rtb-01d23b54bb5c76fbe" subnet_id: "" => "subnet-02ff184f0f44527c8" aws_route_table_association.a: Creation complete after 1s (ID: rtbassoc-0cdcdd3039260a112) aws_security_group.elb: Creation complete after 7s (ID: sg-0aa9f8314f435767f) aws_security_group.default: Creating... arn: "" => "" description: "" => "Used in the terraform" egress.#: "" => "1" egress.482069346.cidr_blocks.#: "" => "1" egress.482069346.cidr_blocks.0: "" => "0.0.0.0/0" egress.482069346.description: "" => "" egress.482069346.from_port: "" => "0" egress.482069346.ipv6_cidr_blocks.#: "" => "0" egress.482069346.prefix_list_ids.#: "" => "0" egress.482069346.protocol: "" => "-1" egress.482069346.security_groups.#: "" => "0" egress.482069346.self: "" => "false" egress.482069346.to_port: "" => "0" ingress.#: "" => "2" ingress.1753530290.cidr_blocks.#: "" => "1" ingress.1753530290.cidr_blocks.0: "" => "0.0.0.0/0" ingress.1753530290.description: "" => "" ingress.1753530290.from_port: "" => "22" ingress.1753530290.ipv6_cidr_blocks.#: "" => "0" ingress.1753530290.prefix_list_ids.#: "" => "0" ingress.1753530290.protocol: "" => "tcp" ingress.1753530290.security_groups.#: "" => "0" ingress.1753530290.self: "" => "false" ingress.1753530290.to_port: "" => "22" ingress.361174249.cidr_blocks.#: "" => "0" ingress.361174249.description: "" => "" ingress.361174249.from_port: "" => "80" ingress.361174249.ipv6_cidr_blocks.#: "" => "0" ingress.361174249.prefix_list_ids.#: "" => "0" ingress.361174249.protocol: "" => "tcp" ingress.361174249.security_groups.#: "" => "1" ingress.361174249.security_groups.1855766806: "" => "sg-0aa9f8314f435767f" ingress.361174249.self: "" => "false" ingress.361174249.to_port: "" => "80" name: "" => "ec2_sg" owner_id: "" => "" revoke_rules_on_delete: "" => "false" vpc_id: "" => "vpc-0af2a61b9f27eeaf6" aws_security_group.default: Creation complete after 7s (ID: sg-0343de91b3b15bb31) aws_instance.web[0]: Creating... ami: "" => "ami-01e24be29428c15b2" arn: "" => "" associate_public_ip_address: "" => "" availability_zone: "" => "" cpu_core_count: "" => "" cpu_threads_per_core: "" => "" ebs_block_device.#: "" => "" ephemeral_block_device.#: "" => "" get_password_data: "" => "false" host_id: "" => "" instance_state: "" => "" instance_type: "" => "t2.micro" ipv6_address_count: "" => "" ipv6_addresses.#: "" => "" key_name: "" => "travel" network_interface.#: "" => "" network_interface_id: "" => "" password_data: "" => "" placement_group: "" => "" primary_network_interface_id: "" => "" private_dns: "" => "" private_ip: "" => "" public_dns: "" => "" public_ip: "" => "" root_block_device.#: "" => "" security_groups.#: "" => "" source_dest_check: "" => "true" subnet_id: "" => "subnet-02ff184f0f44527c8" tags.%: "" => "1" tags.Name: "" => "HelloWorld" tenancy: "" => "" user_data: "" => "75d20e06979b7b9d103da3f66e4590e217520b28" volume_tags.%: "" => "" vpc_security_group_ids.#: "" => "1" vpc_security_group_ids.2033048171: "" => "sg-0343de91b3b15bb31" aws_instance.web[1]: Creating... ami: "" => "ami-01e24be29428c15b2" arn: "" => "" associate_public_ip_address: "" => "" availability_zone: "" => "" cpu_core_count: "" => "" cpu_threads_per_core: "" => "" ebs_block_device.#: "" => "" ephemeral_block_device.#: "" => "" get_password_data: "" => "false" host_id: "" => "" instance_state: "" => "" instance_type: "" => "t2.micro" ipv6_address_count: "" => "" ipv6_addresses.#: "" => "" key_name: "" => "travel" network_interface.#: "" => "" network_interface_id: "" => "" password_data: "" => "" placement_group: "" => "" primary_network_interface_id: "" => "" private_dns: "" => "" private_ip: "" => "" public_dns: "" => "" public_ip: "" => "" root_block_device.#: "" => "" security_groups.#: "" => "" source_dest_check: "" => "true" subnet_id: "" => "subnet-02ff184f0f44527c8" tags.%: "" => "1" tags.Name: "" => "HelloWorld" tenancy: "" => "" user_data: "" => "75d20e06979b7b9d103da3f66e4590e217520b28" volume_tags.%: "" => "" vpc_security_group_ids.#: "" => "1" vpc_security_group_ids.2033048171: "" => "sg-0343de91b3b15bb31" aws_instance.web.0: Still creating... (10s elapsed) aws_instance.web.1: Still creating... (10s elapsed) aws_instance.web.0: Still creating... (20s elapsed) aws_instance.web.1: Still creating... (20s elapsed) aws_instance.web[1]: Creation complete after 29s (ID: i-0372019e1721c102b) aws_instance.web[0]: Creation complete after 29s (ID: i-0ab344594ee962638) aws_elb.web: Creating... arn: "" => "" availability_zones.#: "" => "" connection_draining: "" => "true" connection_draining_timeout: "" => "400" cross_zone_load_balancing: "" => "true" dns_name: "" => "" health_check.#: "" => "1" health_check.0.healthy_threshold: "" => "2" health_check.0.interval: "" => "30" health_check.0.target: "" => "HTTP:80/" health_check.0.timeout: "" => "3" health_check.0.unhealthy_threshold: "" => "2" idle_timeout: "" => "400" instances.#: "" => "2" instances.1798319538: "" => "i-0372019e1721c102b" instances.701797359: "" => "i-0ab344594ee962638" internal: "" => "" listener.#: "" => "1" listener.1237843950.instance_port: "" => "80" listener.1237843950.instance_protocol: "" => "http" listener.1237843950.lb_port: "" => "80" listener.1237843950.lb_protocol: "" => "http" listener.1237843950.ssl_certificate_id: "" => "" name: "" => "hello-elb" security_groups.#: "" => "1" security_groups.1855766806: "" => "sg-0aa9f8314f435767f" source_security_group: "" => "" source_security_group_id: "" => "" subnets.#: "" => "1" subnets.2115524638: "" => "subnet-02ff184f0f44527c8" zone_id: "" => "" aws_elb.web: Still creating... (10s elapsed) aws_elb.web: Creation complete after 11s (ID: hello-elb) aws_lb_cookie_stickiness_policy.default: Creating... cookie_expiration_period: "" => "600" lb_port: "" => "80" load_balancer: "" => "hello-elb" name: "" => "lbpolicy" aws_lb_cookie_stickiness_policy.default: Creation complete after 2s (ID: hello-elb:80:lbpolicy) Apply complete! Resources: 11 added, 0 changed, 0 destroyed. Outputs: address = hello-elb-1607032391.us-west-2.elb.amazonaws.com