Skip to content
Snippets Groups Projects
Commit c9e7c247 authored by Kenneth's avatar Kenneth
Browse files

Remove Public IP

parent 691fb4d3
No related branches found
No related tags found
No related merge requests found
File added
...@@ -50,7 +50,7 @@ resource "aws_subnet" "private_subnet_a" { ...@@ -50,7 +50,7 @@ resource "aws_subnet" "private_subnet_a" {
vpc_id = data.aws_vpc.this.id vpc_id = data.aws_vpc.this.id
cidr_block = "10.0.35.0/24" # 1er bloc cidr_block = "10.0.35.0/24" # 1er bloc
availability_zone = data.aws_availability_zones.available.names[0] availability_zone = data.aws_availability_zones.available.names[0]
map_public_ip_on_launch = true map_public_ip_on_launch = false
tags = { tags = {
Name = upper("${var.identifiant}_${terraform.workspace}_PRIVATE_SUBNET_A") Name = upper("${var.identifiant}_${terraform.workspace}_PRIVATE_SUBNET_A")
......
{ {
"version": 4, "version": 4,
"terraform_version": "1.10.5", "terraform_version": "1.10.5",
"serial": 49, "serial": 70,
"lineage": "eded4345-a67f-9a4a-9ad8-c68c205f47c2", "lineage": "eded4345-a67f-9a4a-9ad8-c68c205f47c2",
"outputs": {}, "outputs": {},
"resources": [ "resources": [
...@@ -187,8 +187,8 @@ ...@@ -187,8 +187,8 @@
"name": "kennethhugo_dev_rds_subnet_group", "name": "kennethhugo_dev_rds_subnet_group",
"name_prefix": "", "name_prefix": "",
"subnet_ids": [ "subnet_ids": [
"subnet-0957b7b385c51777e", "subnet-05a7ea15f5fbd3e4b",
"subnet-0c577eaec9d03cdd1" "subnet-098844236bb248009"
], ],
"supported_network_types": [ "supported_network_types": [
"IPV4" "IPV4"
...@@ -222,8 +222,8 @@ ...@@ -222,8 +222,8 @@
"schema_version": 1, "schema_version": 1,
"attributes": { "attributes": {
"ami": "ami-03f3bb80e24b71cd8", "ami": "ami-03f3bb80e24b71cd8",
"arn": "arn:aws:ec2:eu-west-3:920373009484:instance/i-07e4e3764075819d1", "arn": "arn:aws:ec2:eu-west-3:920373009484:instance/i-0f8f755ae35c0dba8",
"associate_public_ip_address": true, "associate_public_ip_address": false,
"availability_zone": "eu-west-3a", "availability_zone": "eu-west-3a",
"capacity_reservation_specification": [ "capacity_reservation_specification": [
{ {
...@@ -261,7 +261,7 @@ ...@@ -261,7 +261,7 @@
"host_id": "", "host_id": "",
"host_resource_group_arn": null, "host_resource_group_arn": null,
"iam_instance_profile": "", "iam_instance_profile": "",
"id": "i-07e4e3764075819d1", "id": "i-0f8f755ae35c0dba8",
"instance_initiated_shutdown_behavior": "stop", "instance_initiated_shutdown_behavior": "stop",
"instance_lifecycle": "", "instance_lifecycle": "",
"instance_market_options": [], "instance_market_options": [],
...@@ -291,8 +291,8 @@ ...@@ -291,8 +291,8 @@
"password_data": "", "password_data": "",
"placement_group": "", "placement_group": "",
"placement_partition_number": 0, "placement_partition_number": 0,
"primary_network_interface_id": "eni-001db229f5297a2b7", "primary_network_interface_id": "eni-047b370670f880b31",
"private_dns": "ip-10-0-35-13.eu-west-3.compute.internal", "private_dns": "ip-10-0-35-86.eu-west-3.compute.internal",
"private_dns_name_options": [ "private_dns_name_options": [
{ {
"enable_resource_name_dns_a_record": false, "enable_resource_name_dns_a_record": false,
...@@ -300,9 +300,9 @@ ...@@ -300,9 +300,9 @@
"hostname_type": "ip-name" "hostname_type": "ip-name"
} }
], ],
"private_ip": "10.0.35.13", "private_ip": "10.0.35.86",
"public_dns": "", "public_dns": "",
"public_ip": "51.44.12.205", "public_ip": "",
"root_block_device": [ "root_block_device": [
{ {
"delete_on_termination": true, "delete_on_termination": true,
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
"tags": {}, "tags": {},
"tags_all": {}, "tags_all": {},
"throughput": 0, "throughput": 0,
"volume_id": "vol-02352fdccdee278c6", "volume_id": "vol-0d1da72e9c08a0cfd",
"volume_size": 8, "volume_size": 8,
"volume_type": "gp2" "volume_type": "gp2"
} }
...@@ -322,7 +322,7 @@ ...@@ -322,7 +322,7 @@
"security_groups": [], "security_groups": [],
"source_dest_check": true, "source_dest_check": true,
"spot_instance_request_id": "", "spot_instance_request_id": "",
"subnet_id": "subnet-0957b7b385c51777e", "subnet_id": "subnet-098844236bb248009",
"tags": { "tags": {
"Name": "KENNETHHUGO_DEV_API_VM" "Name": "KENNETHHUGO_DEV_API_VM"
}, },
...@@ -336,7 +336,7 @@ ...@@ -336,7 +336,7 @@
"user_data_replace_on_change": false, "user_data_replace_on_change": false,
"volume_tags": null, "volume_tags": null,
"vpc_security_group_ids": [ "vpc_security_group_ids": [
"sg-0f9191c45d7ffe841" "sg-05f936ba39fe9b5df"
] ]
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
...@@ -362,8 +362,8 @@ ...@@ -362,8 +362,8 @@
"schema_version": 1, "schema_version": 1,
"attributes": { "attributes": {
"ami": "ami-03f3bb80e24b71cd8", "ami": "ami-03f3bb80e24b71cd8",
"arn": "arn:aws:ec2:eu-west-3:920373009484:instance/i-0714a2da363e2d1f4", "arn": "arn:aws:ec2:eu-west-3:920373009484:instance/i-00ce58fcfd7cbeebb",
"associate_public_ip_address": true, "associate_public_ip_address": false,
"availability_zone": "eu-west-3a", "availability_zone": "eu-west-3a",
"capacity_reservation_specification": [ "capacity_reservation_specification": [
{ {
...@@ -401,7 +401,7 @@ ...@@ -401,7 +401,7 @@
"host_id": "", "host_id": "",
"host_resource_group_arn": null, "host_resource_group_arn": null,
"iam_instance_profile": "", "iam_instance_profile": "",
"id": "i-0714a2da363e2d1f4", "id": "i-00ce58fcfd7cbeebb",
"instance_initiated_shutdown_behavior": "stop", "instance_initiated_shutdown_behavior": "stop",
"instance_lifecycle": "", "instance_lifecycle": "",
"instance_market_options": [], "instance_market_options": [],
...@@ -431,8 +431,8 @@ ...@@ -431,8 +431,8 @@
"password_data": "", "password_data": "",
"placement_group": "", "placement_group": "",
"placement_partition_number": 0, "placement_partition_number": 0,
"primary_network_interface_id": "eni-0dbed98fe271c8c56", "primary_network_interface_id": "eni-0951f25c7b057616e",
"private_dns": "ip-10-0-35-14.eu-west-3.compute.internal", "private_dns": "ip-10-0-35-191.eu-west-3.compute.internal",
"private_dns_name_options": [ "private_dns_name_options": [
{ {
"enable_resource_name_dns_a_record": false, "enable_resource_name_dns_a_record": false,
...@@ -440,9 +440,9 @@ ...@@ -440,9 +440,9 @@
"hostname_type": "ip-name" "hostname_type": "ip-name"
} }
], ],
"private_ip": "10.0.35.14", "private_ip": "10.0.35.191",
"public_dns": "", "public_dns": "",
"public_ip": "15.237.217.243", "public_ip": "",
"root_block_device": [ "root_block_device": [
{ {
"delete_on_termination": true, "delete_on_termination": true,
...@@ -453,7 +453,7 @@ ...@@ -453,7 +453,7 @@
"tags": {}, "tags": {},
"tags_all": {}, "tags_all": {},
"throughput": 0, "throughput": 0,
"volume_id": "vol-03bb498cd1c279046", "volume_id": "vol-01f8994af25befaff",
"volume_size": 8, "volume_size": 8,
"volume_type": "gp2" "volume_type": "gp2"
} }
...@@ -462,7 +462,7 @@ ...@@ -462,7 +462,7 @@
"security_groups": [], "security_groups": [],
"source_dest_check": true, "source_dest_check": true,
"spot_instance_request_id": "", "spot_instance_request_id": "",
"subnet_id": "subnet-0957b7b385c51777e", "subnet_id": "subnet-098844236bb248009",
"tags": { "tags": {
"Name": "KENNETHHUGO_DEV_CLIENT_VM" "Name": "KENNETHHUGO_DEV_CLIENT_VM"
}, },
...@@ -476,7 +476,7 @@ ...@@ -476,7 +476,7 @@
"user_data_replace_on_change": false, "user_data_replace_on_change": false,
"volume_tags": null, "volume_tags": null,
"vpc_security_group_ids": [ "vpc_security_group_ids": [
"sg-0e112008f976bb487" "sg-043047f953fdfcc59"
] ]
}, },
"sensitive_attributes": [], "sensitive_attributes": [],
...@@ -500,7 +500,7 @@ ...@@ -500,7 +500,7 @@
{ {
"schema_version": 1, "schema_version": 1,
"attributes": { "attributes": {
"arn": "arn:aws:ec2:eu-west-3:920373009484:security-group/sg-0f9191c45d7ffe841", "arn": "arn:aws:ec2:eu-west-3:920373009484:security-group/sg-05f936ba39fe9b5df",
"description": "Managed by Terraform", "description": "Managed by Terraform",
"egress": [ "egress": [
{ {
...@@ -517,7 +517,7 @@ ...@@ -517,7 +517,7 @@
"to_port": 0 "to_port": 0
} }
], ],
"id": "sg-0f9191c45d7ffe841", "id": "sg-05f936ba39fe9b5df",
"ingress": [ "ingress": [
{ {
"cidr_blocks": [], "cidr_blocks": [],
...@@ -527,7 +527,7 @@ ...@@ -527,7 +527,7 @@
"prefix_list_ids": [], "prefix_list_ids": [],
"protocol": "tcp", "protocol": "tcp",
"security_groups": [ "security_groups": [
"sg-0e112008f976bb487" "sg-043047f953fdfcc59"
], ],
"self": false, "self": false,
"to_port": 5000 "to_port": 5000
...@@ -564,7 +564,7 @@ ...@@ -564,7 +564,7 @@
{ {
"schema_version": 1, "schema_version": 1,
"attributes": { "attributes": {
"arn": "arn:aws:ec2:eu-west-3:920373009484:security-group/sg-0e112008f976bb487", "arn": "arn:aws:ec2:eu-west-3:920373009484:security-group/sg-043047f953fdfcc59",
"description": "Managed by Terraform", "description": "Managed by Terraform",
"egress": [ "egress": [
{ {
...@@ -581,7 +581,7 @@ ...@@ -581,7 +581,7 @@
"to_port": 0 "to_port": 0
} }
], ],
"id": "sg-0e112008f976bb487", "id": "sg-043047f953fdfcc59",
"ingress": [ "ingress": [
{ {
"cidr_blocks": [ "cidr_blocks": [
...@@ -627,7 +627,7 @@ ...@@ -627,7 +627,7 @@
{ {
"schema_version": 1, "schema_version": 1,
"attributes": { "attributes": {
"arn": "arn:aws:ec2:eu-west-3:920373009484:security-group/sg-0c35a964669183e38", "arn": "arn:aws:ec2:eu-west-3:920373009484:security-group/sg-0201132761d5986da",
"description": "Managed by Terraform", "description": "Managed by Terraform",
"egress": [ "egress": [
{ {
...@@ -644,7 +644,7 @@ ...@@ -644,7 +644,7 @@
"to_port": 0 "to_port": 0
} }
], ],
"id": "sg-0c35a964669183e38", "id": "sg-0201132761d5986da",
"ingress": [ "ingress": [
{ {
"cidr_blocks": [], "cidr_blocks": [],
...@@ -654,7 +654,7 @@ ...@@ -654,7 +654,7 @@
"prefix_list_ids": [], "prefix_list_ids": [],
"protocol": "tcp", "protocol": "tcp",
"security_groups": [ "security_groups": [
"sg-0f9191c45d7ffe841" "sg-05f936ba39fe9b5df"
], ],
"self": false, "self": false,
"to_port": 5432 "to_port": 5432
...@@ -692,7 +692,7 @@ ...@@ -692,7 +692,7 @@
{ {
"schema_version": 1, "schema_version": 1,
"attributes": { "attributes": {
"arn": "arn:aws:ec2:eu-west-3:920373009484:subnet/subnet-0957b7b385c51777e", "arn": "arn:aws:ec2:eu-west-3:920373009484:subnet/subnet-098844236bb248009",
"assign_ipv6_address_on_creation": false, "assign_ipv6_address_on_creation": false,
"availability_zone": "eu-west-3a", "availability_zone": "eu-west-3a",
"availability_zone_id": "euw3-az1", "availability_zone_id": "euw3-az1",
...@@ -702,12 +702,12 @@ ...@@ -702,12 +702,12 @@
"enable_lni_at_device_index": 0, "enable_lni_at_device_index": 0,
"enable_resource_name_dns_a_record_on_launch": false, "enable_resource_name_dns_a_record_on_launch": false,
"enable_resource_name_dns_aaaa_record_on_launch": false, "enable_resource_name_dns_aaaa_record_on_launch": false,
"id": "subnet-0957b7b385c51777e", "id": "subnet-098844236bb248009",
"ipv6_cidr_block": "", "ipv6_cidr_block": "",
"ipv6_cidr_block_association_id": "", "ipv6_cidr_block_association_id": "",
"ipv6_native": false, "ipv6_native": false,
"map_customer_owned_ip_on_launch": false, "map_customer_owned_ip_on_launch": false,
"map_public_ip_on_launch": true, "map_public_ip_on_launch": false,
"outpost_arn": "", "outpost_arn": "",
"owner_id": "920373009484", "owner_id": "920373009484",
"private_dns_hostname_type_on_launch": "ip-name", "private_dns_hostname_type_on_launch": "ip-name",
...@@ -738,7 +738,7 @@ ...@@ -738,7 +738,7 @@
{ {
"schema_version": 1, "schema_version": 1,
"attributes": { "attributes": {
"arn": "arn:aws:ec2:eu-west-3:920373009484:subnet/subnet-0c577eaec9d03cdd1", "arn": "arn:aws:ec2:eu-west-3:920373009484:subnet/subnet-05a7ea15f5fbd3e4b",
"assign_ipv6_address_on_creation": false, "assign_ipv6_address_on_creation": false,
"availability_zone": "eu-west-3b", "availability_zone": "eu-west-3b",
"availability_zone_id": "euw3-az2", "availability_zone_id": "euw3-az2",
...@@ -748,7 +748,7 @@ ...@@ -748,7 +748,7 @@
"enable_lni_at_device_index": 0, "enable_lni_at_device_index": 0,
"enable_resource_name_dns_a_record_on_launch": false, "enable_resource_name_dns_a_record_on_launch": false,
"enable_resource_name_dns_aaaa_record_on_launch": false, "enable_resource_name_dns_aaaa_record_on_launch": false,
"id": "subnet-0c577eaec9d03cdd1", "id": "subnet-05a7ea15f5fbd3e4b",
"ipv6_cidr_block": "", "ipv6_cidr_block": "",
"ipv6_cidr_block_association_id": "", "ipv6_cidr_block_association_id": "",
"ipv6_native": false, "ipv6_native": false,
......
{ {
"version": 4, "version": 4,
"terraform_version": "1.10.5", "terraform_version": "1.10.5",
"serial": 40, "serial": 61,
"lineage": "eded4345-a67f-9a4a-9ad8-c68c205f47c2", "lineage": "eded4345-a67f-9a4a-9ad8-c68c205f47c2",
"outputs": {}, "outputs": {},
"resources": [], "resources": [],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment