471 lines
16 KiB
JSON
471 lines
16 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "1.4.6",
|
|
"serial": 8,
|
|
"lineage": "52e87bf7-135d-91e1-6212-adda0c0c1c37",
|
|
"outputs": {},
|
|
"resources": [
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_ebs_volume",
|
|
"name": "dskdemo2_ebs",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:508259851457:volume/vol-0d940e174d486470d",
|
|
"availability_zone": "ap-northeast-2c",
|
|
"encrypted": true,
|
|
"final_snapshot": false,
|
|
"id": "vol-0d940e174d486470d",
|
|
"iops": 300,
|
|
"kms_key_id": "arn:aws:kms:ap-northeast-2:508259851457:key/fac33ef5-dbc0-4dcb-9be1-1862c6678bfb",
|
|
"multi_attach_enabled": false,
|
|
"outpost_arn": "",
|
|
"size": 100,
|
|
"snapshot_id": "",
|
|
"tags": {
|
|
"Name": "dskdemo2-ebs"
|
|
},
|
|
"tags_all": {
|
|
"Name": "dskdemo2-ebs"
|
|
},
|
|
"throughput": 0,
|
|
"timeouts": null,
|
|
"type": "gp2"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjMwMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"aws_instance.dskdemo2",
|
|
"aws_security_group.dskdemo-allow-security"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_ebs_volume",
|
|
"name": "dskdemo_ebs",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:508259851457:volume/vol-0ac9975e51ec72682",
|
|
"availability_zone": "ap-northeast-2c",
|
|
"encrypted": true,
|
|
"final_snapshot": false,
|
|
"id": "vol-0ac9975e51ec72682",
|
|
"iops": 300,
|
|
"kms_key_id": "arn:aws:kms:ap-northeast-2:508259851457:key/fac33ef5-dbc0-4dcb-9be1-1862c6678bfb",
|
|
"multi_attach_enabled": false,
|
|
"outpost_arn": "",
|
|
"size": 100,
|
|
"snapshot_id": "",
|
|
"tags": {
|
|
"Name": "dskdemo-ebs"
|
|
},
|
|
"tags_all": {
|
|
"Name": "dskdemo-ebs"
|
|
},
|
|
"throughput": 0,
|
|
"timeouts": null,
|
|
"type": "gp2"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwLCJ1cGRhdGUiOjMwMDAwMDAwMDAwMH19",
|
|
"dependencies": [
|
|
"aws_instance.dskdemo",
|
|
"aws_security_group.dskdemo-allow-security"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_instance",
|
|
"name": "dskdemo",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"ami": "ami-0c27244ec9d87b4e8",
|
|
"arn": "arn:aws:ec2:ap-northeast-2:508259851457:instance/i-052ddfaa3948d4ee3",
|
|
"associate_public_ip_address": false,
|
|
"availability_zone": "ap-northeast-2c",
|
|
"capacity_reservation_specification": [
|
|
{
|
|
"capacity_reservation_preference": "open",
|
|
"capacity_reservation_target": []
|
|
}
|
|
],
|
|
"cpu_core_count": 1,
|
|
"cpu_options": [
|
|
{
|
|
"amd_sev_snp": "",
|
|
"core_count": 1,
|
|
"threads_per_core": 2
|
|
}
|
|
],
|
|
"cpu_threads_per_core": 2,
|
|
"credit_specification": [
|
|
{
|
|
"cpu_credits": "unlimited"
|
|
}
|
|
],
|
|
"disable_api_stop": false,
|
|
"disable_api_termination": false,
|
|
"ebs_block_device": [],
|
|
"ebs_optimized": false,
|
|
"enclave_options": [
|
|
{
|
|
"enabled": false
|
|
}
|
|
],
|
|
"ephemeral_block_device": [],
|
|
"get_password_data": false,
|
|
"hibernation": false,
|
|
"host_id": "",
|
|
"host_resource_group_arn": null,
|
|
"iam_instance_profile": "",
|
|
"id": "i-052ddfaa3948d4ee3",
|
|
"instance_initiated_shutdown_behavior": "stop",
|
|
"instance_lifecycle": "",
|
|
"instance_market_options": [],
|
|
"instance_state": "running",
|
|
"instance_type": "t3.small",
|
|
"ipv6_address_count": 0,
|
|
"ipv6_addresses": [],
|
|
"key_name": "kp-jay-bastion-datasaker",
|
|
"launch_template": [],
|
|
"maintenance_options": [
|
|
{
|
|
"auto_recovery": "default"
|
|
}
|
|
],
|
|
"metadata_options": [
|
|
{
|
|
"http_endpoint": "enabled",
|
|
"http_put_response_hop_limit": 1,
|
|
"http_tokens": "optional",
|
|
"instance_metadata_tags": "disabled"
|
|
}
|
|
],
|
|
"monitoring": false,
|
|
"network_interface": [],
|
|
"outpost_arn": "",
|
|
"password_data": "",
|
|
"placement_group": "",
|
|
"placement_partition_number": 0,
|
|
"primary_network_interface_id": "eni-0945c4acbc3bff8c1",
|
|
"private_dns": "i-052ddfaa3948d4ee3.ap-northeast-2.compute.internal",
|
|
"private_dns_name_options": [
|
|
{
|
|
"enable_resource_name_dns_a_record": true,
|
|
"enable_resource_name_dns_aaaa_record": false,
|
|
"hostname_type": "resource-name"
|
|
}
|
|
],
|
|
"private_ip": "172.24.2.121",
|
|
"public_dns": "",
|
|
"public_ip": "",
|
|
"root_block_device": [
|
|
{
|
|
"delete_on_termination": true,
|
|
"device_name": "/dev/xvda",
|
|
"encrypted": true,
|
|
"iops": 100,
|
|
"kms_key_id": "arn:aws:kms:ap-northeast-2:508259851457:key/fac33ef5-dbc0-4dcb-9be1-1862c6678bfb",
|
|
"tags": null,
|
|
"throughput": 0,
|
|
"volume_id": "vol-013872983cfbbfa2a",
|
|
"volume_size": 30,
|
|
"volume_type": "gp2"
|
|
}
|
|
],
|
|
"secondary_private_ips": [],
|
|
"security_groups": [],
|
|
"source_dest_check": true,
|
|
"spot_instance_request_id": "",
|
|
"subnet_id": "subnet-0073a61bc56a68a3e",
|
|
"tags": {
|
|
"Name": "dskdemo"
|
|
},
|
|
"tags_all": {
|
|
"Name": "dskdemo"
|
|
},
|
|
"tenancy": "default",
|
|
"timeouts": null,
|
|
"user_data": null,
|
|
"user_data_base64": null,
|
|
"user_data_replace_on_change": false,
|
|
"volume_tags": null,
|
|
"vpc_security_group_ids": [
|
|
"sg-073c247730836f7fd"
|
|
]
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
|
|
"dependencies": [
|
|
"aws_security_group.dskdemo-allow-security"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_instance",
|
|
"name": "dskdemo2",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"ami": "ami-0c27244ec9d87b4e8",
|
|
"arn": "arn:aws:ec2:ap-northeast-2:508259851457:instance/i-0dad753d4392f5144",
|
|
"associate_public_ip_address": false,
|
|
"availability_zone": "ap-northeast-2c",
|
|
"capacity_reservation_specification": [
|
|
{
|
|
"capacity_reservation_preference": "open",
|
|
"capacity_reservation_target": []
|
|
}
|
|
],
|
|
"cpu_core_count": 1,
|
|
"cpu_options": [
|
|
{
|
|
"amd_sev_snp": "",
|
|
"core_count": 1,
|
|
"threads_per_core": 2
|
|
}
|
|
],
|
|
"cpu_threads_per_core": 2,
|
|
"credit_specification": [
|
|
{
|
|
"cpu_credits": "unlimited"
|
|
}
|
|
],
|
|
"disable_api_stop": false,
|
|
"disable_api_termination": false,
|
|
"ebs_block_device": [],
|
|
"ebs_optimized": false,
|
|
"enclave_options": [
|
|
{
|
|
"enabled": false
|
|
}
|
|
],
|
|
"ephemeral_block_device": [],
|
|
"get_password_data": false,
|
|
"hibernation": false,
|
|
"host_id": "",
|
|
"host_resource_group_arn": null,
|
|
"iam_instance_profile": "",
|
|
"id": "i-0dad753d4392f5144",
|
|
"instance_initiated_shutdown_behavior": "stop",
|
|
"instance_lifecycle": "",
|
|
"instance_market_options": [],
|
|
"instance_state": "running",
|
|
"instance_type": "t3.small",
|
|
"ipv6_address_count": 0,
|
|
"ipv6_addresses": [],
|
|
"key_name": "kp-jay-bastion-datasaker",
|
|
"launch_template": [],
|
|
"maintenance_options": [
|
|
{
|
|
"auto_recovery": "default"
|
|
}
|
|
],
|
|
"metadata_options": [
|
|
{
|
|
"http_endpoint": "enabled",
|
|
"http_put_response_hop_limit": 1,
|
|
"http_tokens": "optional",
|
|
"instance_metadata_tags": "disabled"
|
|
}
|
|
],
|
|
"monitoring": false,
|
|
"network_interface": [],
|
|
"outpost_arn": "",
|
|
"password_data": "",
|
|
"placement_group": "",
|
|
"placement_partition_number": 0,
|
|
"primary_network_interface_id": "eni-0289f9f895e56ec92",
|
|
"private_dns": "i-0dad753d4392f5144.ap-northeast-2.compute.internal",
|
|
"private_dns_name_options": [
|
|
{
|
|
"enable_resource_name_dns_a_record": true,
|
|
"enable_resource_name_dns_aaaa_record": false,
|
|
"hostname_type": "resource-name"
|
|
}
|
|
],
|
|
"private_ip": "172.24.2.164",
|
|
"public_dns": "",
|
|
"public_ip": "",
|
|
"root_block_device": [
|
|
{
|
|
"delete_on_termination": true,
|
|
"device_name": "/dev/xvda",
|
|
"encrypted": true,
|
|
"iops": 100,
|
|
"kms_key_id": "arn:aws:kms:ap-northeast-2:508259851457:key/fac33ef5-dbc0-4dcb-9be1-1862c6678bfb",
|
|
"tags": null,
|
|
"throughput": 0,
|
|
"volume_id": "vol-093b7f4eb73d57435",
|
|
"volume_size": 30,
|
|
"volume_type": "gp2"
|
|
}
|
|
],
|
|
"secondary_private_ips": [],
|
|
"security_groups": [],
|
|
"source_dest_check": true,
|
|
"spot_instance_request_id": "",
|
|
"subnet_id": "subnet-0073a61bc56a68a3e",
|
|
"tags": {
|
|
"Name": "dskdemo2"
|
|
},
|
|
"tags_all": {
|
|
"Name": "dskdemo2"
|
|
},
|
|
"tenancy": "default",
|
|
"timeouts": null,
|
|
"user_data": null,
|
|
"user_data_base64": null,
|
|
"user_data_replace_on_change": false,
|
|
"volume_tags": null,
|
|
"vpc_security_group_ids": [
|
|
"sg-073c247730836f7fd"
|
|
]
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
|
|
"dependencies": [
|
|
"aws_security_group.dskdemo-allow-security"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_security_group",
|
|
"name": "dskdemo-allow-security",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"arn": "arn:aws:ec2:ap-northeast-2:508259851457:security-group/sg-073c247730836f7fd",
|
|
"description": "Allow inbound traffic",
|
|
"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": "sg-073c247730836f7fd",
|
|
"ingress": [
|
|
{
|
|
"cidr_blocks": [
|
|
"118.223.123.161/32"
|
|
],
|
|
"description": "SSH",
|
|
"from_port": 22,
|
|
"ipv6_cidr_blocks": [],
|
|
"prefix_list_ids": [],
|
|
"protocol": "tcp",
|
|
"security_groups": [],
|
|
"self": false,
|
|
"to_port": 22
|
|
}
|
|
],
|
|
"name": "dskdemo-allow-security-new",
|
|
"name_prefix": "",
|
|
"owner_id": "508259851457",
|
|
"revoke_rules_on_delete": false,
|
|
"tags": {
|
|
"Name": "dskdemo-allow-security"
|
|
},
|
|
"tags_all": {
|
|
"Name": "dskdemo-allow-security"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-00ba2b0e9ad59f0ed"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0="
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_volume_attachment",
|
|
"name": "dskdemo2_ebs_attach",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"device_name": "/dev/xvdf",
|
|
"force_detach": null,
|
|
"id": "vai-3450723728",
|
|
"instance_id": "i-0dad753d4392f5144",
|
|
"skip_destroy": null,
|
|
"stop_instance_before_detaching": null,
|
|
"timeouts": null,
|
|
"volume_id": "vol-0d940e174d486470d"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwfX0=",
|
|
"dependencies": [
|
|
"aws_ebs_volume.dskdemo2_ebs",
|
|
"aws_instance.dskdemo2",
|
|
"aws_security_group.dskdemo-allow-security"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_volume_attachment",
|
|
"name": "dskdemo_ebs_attach",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 0,
|
|
"attributes": {
|
|
"device_name": "/dev/xvdf",
|
|
"force_detach": null,
|
|
"id": "vai-210491461",
|
|
"instance_id": "i-052ddfaa3948d4ee3",
|
|
"skip_destroy": null,
|
|
"stop_instance_before_detaching": null,
|
|
"timeouts": null,
|
|
"volume_id": "vol-0ac9975e51ec72682"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjozMDAwMDAwMDAwMDAsImRlbGV0ZSI6MzAwMDAwMDAwMDAwfX0=",
|
|
"dependencies": [
|
|
"aws_ebs_volume.dskdemo_ebs",
|
|
"aws_instance.dskdemo",
|
|
"aws_security_group.dskdemo-allow-security"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"check_results": null
|
|
}
|