mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-07-28 13:49:50 +00:00
Change security groups
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"terraform_version": "0.11.10",
|
||||
"serial": 3,
|
||||
"serial": 6,
|
||||
"lineage": "4559bbe1-495e-5de2-cb83-77e241ef9eac",
|
||||
"modules": [
|
||||
{
|
||||
@ -17,13 +17,13 @@
|
||||
"data.aws_eip.webserver-ip"
|
||||
],
|
||||
"primary": {
|
||||
"id": "eipassoc-01df35e4fb2455c9a",
|
||||
"id": "eipassoc-0f0b99dc7d0160ee9",
|
||||
"attributes": {
|
||||
"allocation_id": "eipalloc-0f61e902f5f680dc0",
|
||||
"id": "eipassoc-01df35e4fb2455c9a",
|
||||
"instance_id": "i-0c9eae21a3130cc41",
|
||||
"network_interface_id": "eni-07011ea41afb09dec",
|
||||
"private_ip_address": "172.31.46.198",
|
||||
"id": "eipassoc-0f0b99dc7d0160ee9",
|
||||
"instance_id": "i-06a306ae30d2e0ce1",
|
||||
"network_interface_id": "eni-02cda3577fdab8135",
|
||||
"private_ip_address": "172.31.37.211",
|
||||
"public_ip": "35.180.10.123"
|
||||
},
|
||||
"meta": {},
|
||||
@ -39,10 +39,10 @@
|
||||
"aws_security_group.allow_ssh"
|
||||
],
|
||||
"primary": {
|
||||
"id": "i-0c9eae21a3130cc41",
|
||||
"id": "i-06a306ae30d2e0ce1",
|
||||
"attributes": {
|
||||
"ami": "ami-04992646d54c69ef4",
|
||||
"arn": "arn:aws:ec2:eu-west-3:116854918046:instance/i-0c9eae21a3130cc41",
|
||||
"arn": "arn:aws:ec2:eu-west-3:116854918046:instance/i-06a306ae30d2e0ce1",
|
||||
"associate_public_ip_address": "true",
|
||||
"availability_zone": "eu-west-3c",
|
||||
"cpu_core_count": "1",
|
||||
@ -55,25 +55,25 @@
|
||||
"ephemeral_block_device.#": "0",
|
||||
"get_password_data": "false",
|
||||
"iam_instance_profile": "",
|
||||
"id": "i-0c9eae21a3130cc41",
|
||||
"id": "i-06a306ae30d2e0ce1",
|
||||
"instance_state": "running",
|
||||
"instance_type": "t2.micro",
|
||||
"ipv6_addresses.#": "0",
|
||||
"key_name": "terraform_ec2_key",
|
||||
"monitoring": "false",
|
||||
"network_interface.#": "0",
|
||||
"network_interface_id": "eni-07011ea41afb09dec",
|
||||
"network_interface_id": "eni-02cda3577fdab8135",
|
||||
"password_data": "",
|
||||
"placement_group": "",
|
||||
"primary_network_interface_id": "eni-07011ea41afb09dec",
|
||||
"private_dns": "ip-172-31-46-198.eu-west-3.compute.internal",
|
||||
"private_ip": "172.31.46.198",
|
||||
"public_dns": "ec2-35-180-10-123.eu-west-3.compute.amazonaws.com",
|
||||
"public_ip": "35.180.10.123",
|
||||
"primary_network_interface_id": "eni-02cda3577fdab8135",
|
||||
"private_dns": "ip-172-31-37-211.eu-west-3.compute.internal",
|
||||
"private_ip": "172.31.37.211",
|
||||
"public_dns": "ec2-35-180-34-103.eu-west-3.compute.amazonaws.com",
|
||||
"public_ip": "35.180.34.103",
|
||||
"root_block_device.#": "1",
|
||||
"root_block_device.0.delete_on_termination": "true",
|
||||
"root_block_device.0.iops": "100",
|
||||
"root_block_device.0.volume_id": "vol-0fb06f24a4cfdcad0",
|
||||
"root_block_device.0.volume_id": "vol-00f34daa7c6e64690",
|
||||
"root_block_device.0.volume_size": "8",
|
||||
"root_block_device.0.volume_type": "gp2",
|
||||
"security_groups.#": "1",
|
||||
@ -85,7 +85,7 @@
|
||||
"tenancy": "default",
|
||||
"volume_tags.%": "0",
|
||||
"vpc_security_group_ids.#": "1",
|
||||
"vpc_security_group_ids.1567020715": "sg-091ed62f53cbe7b39"
|
||||
"vpc_security_group_ids.2701339168": "sg-0825bc82dcc6b975f"
|
||||
},
|
||||
"meta": {
|
||||
"e2bfb730-ecaa-11e6-8f88-34363bc7c4c0": {
|
||||
@ -119,16 +119,55 @@
|
||||
"deposed": [],
|
||||
"provider": "provider.aws"
|
||||
},
|
||||
"aws_security_group.allow_http": {
|
||||
"type": "aws_security_group",
|
||||
"depends_on": [],
|
||||
"primary": {
|
||||
"id": "sg-0e91647397b0e53da",
|
||||
"attributes": {
|
||||
"arn": "arn:aws:ec2:eu-west-3:116854918046:security-group/sg-0e91647397b0e53da",
|
||||
"description": "Managed by Terraform",
|
||||
"egress.#": "0",
|
||||
"id": "sg-0e91647397b0e53da",
|
||||
"ingress.#": "1",
|
||||
"ingress.2214680975.cidr_blocks.#": "1",
|
||||
"ingress.2214680975.cidr_blocks.0": "0.0.0.0/0",
|
||||
"ingress.2214680975.description": "",
|
||||
"ingress.2214680975.from_port": "80",
|
||||
"ingress.2214680975.ipv6_cidr_blocks.#": "0",
|
||||
"ingress.2214680975.prefix_list_ids.#": "0",
|
||||
"ingress.2214680975.protocol": "tcp",
|
||||
"ingress.2214680975.security_groups.#": "0",
|
||||
"ingress.2214680975.self": "false",
|
||||
"ingress.2214680975.to_port": "80",
|
||||
"name": "allow http",
|
||||
"owner_id": "116854918046",
|
||||
"revoke_rules_on_delete": "false",
|
||||
"tags.%": "0",
|
||||
"vpc_id": "vpc-8a4b1ae3"
|
||||
},
|
||||
"meta": {
|
||||
"e2bfb730-ecaa-11e6-8f88-34363bc7c4c0": {
|
||||
"create": 600000000000,
|
||||
"delete": 600000000000
|
||||
},
|
||||
"schema_version": "1"
|
||||
},
|
||||
"tainted": false
|
||||
},
|
||||
"deposed": [],
|
||||
"provider": "provider.aws"
|
||||
},
|
||||
"aws_security_group.allow_ssh": {
|
||||
"type": "aws_security_group",
|
||||
"depends_on": [],
|
||||
"primary": {
|
||||
"id": "sg-091ed62f53cbe7b39",
|
||||
"id": "sg-0825bc82dcc6b975f",
|
||||
"attributes": {
|
||||
"arn": "arn:aws:ec2:eu-west-3:116854918046:security-group/sg-091ed62f53cbe7b39",
|
||||
"arn": "arn:aws:ec2:eu-west-3:116854918046:security-group/sg-0825bc82dcc6b975f",
|
||||
"description": "Managed by Terraform",
|
||||
"egress.#": "0",
|
||||
"id": "sg-091ed62f53cbe7b39",
|
||||
"id": "sg-0825bc82dcc6b975f",
|
||||
"ingress.#": "1",
|
||||
"ingress.2541437006.cidr_blocks.#": "1",
|
||||
"ingress.2541437006.cidr_blocks.0": "0.0.0.0/0",
|
||||
|
Reference in New Issue
Block a user