250 lines
8.3 KiB
JSON
250 lines
8.3 KiB
JSON
{
|
|
"version": 4,
|
|
"terraform_version": "1.5.7",
|
|
"serial": 20,
|
|
"lineage": "816258a5-69eb-6967-f105-8709f7e2588d",
|
|
"outputs": {},
|
|
"resources": [
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_instance",
|
|
"name": "grafana",
|
|
"provider": "provider[\"registry.terraform.io/hashicorp/aws\"]",
|
|
"instances": [
|
|
{
|
|
"schema_version": 1,
|
|
"attributes": {
|
|
"ami": "ami-0409b7ddbc59e3222",
|
|
"arn": "arn:aws:ec2:ap-northeast-2:508259851457:instance/i-08af287265bd05022",
|
|
"associate_public_ip_address": true,
|
|
"availability_zone": "ap-northeast-2c",
|
|
"capacity_reservation_specification": [
|
|
{
|
|
"capacity_reservation_preference": "open",
|
|
"capacity_reservation_target": []
|
|
}
|
|
],
|
|
"cpu_core_count": 1,
|
|
"cpu_threads_per_core": 2,
|
|
"credit_specification": [
|
|
{
|
|
"cpu_credits": "unlimited"
|
|
}
|
|
],
|
|
"disable_api_stop": false,
|
|
"disable_api_termination": true,
|
|
"ebs_block_device": [
|
|
{
|
|
"delete_on_termination": false,
|
|
"device_name": "/dev/sdf",
|
|
"encrypted": false,
|
|
"iops": 600,
|
|
"kms_key_id": "",
|
|
"snapshot_id": "",
|
|
"tags": {},
|
|
"throughput": 0,
|
|
"volume_id": "vol-0a2e83f6a2d3d12b3",
|
|
"volume_size": 200,
|
|
"volume_type": "gp2"
|
|
}
|
|
],
|
|
"ebs_optimized": true,
|
|
"enclave_options": [
|
|
{
|
|
"enabled": false
|
|
}
|
|
],
|
|
"ephemeral_block_device": [],
|
|
"get_password_data": false,
|
|
"hibernation": false,
|
|
"host_id": "",
|
|
"host_resource_group_arn": null,
|
|
"iam_instance_profile": "AmazonSSMRoleForInstancesQuickSetup",
|
|
"id": "i-08af287265bd05022",
|
|
"instance_initiated_shutdown_behavior": "stop",
|
|
"instance_state": "running",
|
|
"instance_type": "m5.large",
|
|
"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": "required",
|
|
"instance_metadata_tags": "disabled"
|
|
}
|
|
],
|
|
"monitoring": false,
|
|
"network_interface": [],
|
|
"outpost_arn": "",
|
|
"password_data": "",
|
|
"placement_group": "",
|
|
"placement_partition_number": 0,
|
|
"primary_network_interface_id": "eni-073cf0ad9107c09ab",
|
|
"private_dns": "i-08af287265bd05022.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.212",
|
|
"public_dns": "ec2-3-38-1-96.ap-northeast-2.compute.amazonaws.com",
|
|
"public_ip": "3.38.1.96",
|
|
"root_block_device": [
|
|
{
|
|
"delete_on_termination": true,
|
|
"device_name": "/dev/sda1",
|
|
"encrypted": false,
|
|
"iops": 100,
|
|
"kms_key_id": "",
|
|
"tags": {},
|
|
"throughput": 0,
|
|
"volume_id": "vol-0153e1bed3b29f8b2",
|
|
"volume_size": 30,
|
|
"volume_type": "gp2"
|
|
}
|
|
],
|
|
"secondary_private_ips": [],
|
|
"security_groups": [],
|
|
"source_dest_check": true,
|
|
"subnet_id": "subnet-0073a61bc56a68a3e",
|
|
"tags": {
|
|
"Name": "monitoring.kr.datasaker.io"
|
|
},
|
|
"tags_all": {
|
|
"Name": "monitoring.kr.datasaker.io"
|
|
},
|
|
"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-0aa579ce45269425a"
|
|
]
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6MTIwMDAwMDAwMDAwMCwidXBkYXRlIjo2MDAwMDAwMDAwMDB9LCJzY2hlbWFfdmVyc2lvbiI6IjEifQ==",
|
|
"dependencies": [
|
|
"aws_security_group.grafana-allow-security"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"mode": "managed",
|
|
"type": "aws_security_group",
|
|
"name": "grafana-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-0aa579ce45269425a",
|
|
"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-0aa579ce45269425a",
|
|
"ingress": [
|
|
{
|
|
"cidr_blocks": [
|
|
"118.223.123.161/32",
|
|
"39.115.183.138/32",
|
|
"39.115.183.236/32"
|
|
],
|
|
"description": "Allow HTTPS traffic",
|
|
"from_port": 443,
|
|
"ipv6_cidr_blocks": [],
|
|
"prefix_list_ids": [],
|
|
"protocol": "tcp",
|
|
"security_groups": [],
|
|
"self": false,
|
|
"to_port": 443
|
|
},
|
|
{
|
|
"cidr_blocks": [
|
|
"172.31.0.0/16"
|
|
],
|
|
"description": "",
|
|
"from_port": 0,
|
|
"ipv6_cidr_blocks": [],
|
|
"prefix_list_ids": [],
|
|
"protocol": "-1",
|
|
"security_groups": [],
|
|
"self": false,
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"cidr_blocks": [
|
|
"39.115.183.236/32"
|
|
],
|
|
"description": "Allow SSH traffic",
|
|
"from_port": 22,
|
|
"ipv6_cidr_blocks": [],
|
|
"prefix_list_ids": [],
|
|
"protocol": "tcp",
|
|
"security_groups": [],
|
|
"self": false,
|
|
"to_port": 22
|
|
},
|
|
{
|
|
"cidr_blocks": [],
|
|
"description": "nlb-securitygroup",
|
|
"from_port": 0,
|
|
"ipv6_cidr_blocks": [],
|
|
"prefix_list_ids": [],
|
|
"protocol": "-1",
|
|
"security_groups": [
|
|
"sg-0c46bbbbc5ecc2786"
|
|
],
|
|
"self": false,
|
|
"to_port": 0
|
|
}
|
|
],
|
|
"name": "grafana-allow-security-new",
|
|
"name_prefix": "",
|
|
"owner_id": "508259851457",
|
|
"revoke_rules_on_delete": false,
|
|
"tags": {
|
|
"Name": "monitoring-allow-security"
|
|
},
|
|
"tags_all": {
|
|
"Name": "monitoring-allow-security"
|
|
},
|
|
"timeouts": null,
|
|
"vpc_id": "vpc-00ba2b0e9ad59f0ed"
|
|
},
|
|
"sensitive_attributes": [],
|
|
"private": "eyJlMmJmYjczMC1lY2FhLTExZTYtOGY4OC0zNDM2M2JjN2M0YzAiOnsiY3JlYXRlIjo2MDAwMDAwMDAwMDAsImRlbGV0ZSI6OTAwMDAwMDAwMDAwfSwic2NoZW1hX3ZlcnNpb24iOiIxIn0="
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"check_results": null
|
|
}
|