|
| 1 | +output "instance_id" { |
| 2 | + description = "The ID of the EC2 instance" |
| 3 | + value = aws_instance.kol-memory-viewer.id |
| 4 | +} |
| 5 | + |
| 6 | +output "instance_arn" { |
| 7 | + description = "The ARN of the EC2 instance" |
| 8 | + value = aws_instance.kol-memory-viewer.arn |
| 9 | +} |
| 10 | + |
| 11 | +output "instance_state" { |
| 12 | + description = "The current state of the instance" |
| 13 | + value = aws_instance.kol-memory-viewer.instance_state |
| 14 | +} |
| 15 | + |
| 16 | +output "private_ip" { |
| 17 | + description = "Private IP address of the instance" |
| 18 | + value = aws_instance.kol-memory-viewer.private_ip |
| 19 | +} |
| 20 | + |
| 21 | +output "public_ip" { |
| 22 | + description = "Public IP address of the instance" |
| 23 | + value = aws_instance.kol-memory-viewer.public_ip |
| 24 | +} |
| 25 | + |
| 26 | +output "public_dns" { |
| 27 | + description = "Public DNS of the instance" |
| 28 | + value = aws_instance.kol-memory-viewer.public_dns |
| 29 | +} |
| 30 | + |
| 31 | +output "subnet_id" { |
| 32 | + description = "Subnet ID where the instance is running" |
| 33 | + value = aws_instance.kol-memory-viewer.subnet_id |
| 34 | +} |
| 35 | + |
| 36 | +output "vpc_security_group_ids" { |
| 37 | + description = "List of associated security groups" |
| 38 | + value = aws_instance.kol-memory-viewer.vpc_security_group_ids |
| 39 | +} |
| 40 | + |
| 41 | +output "key_name" { |
| 42 | + description = "Name of the key pair used to launch the instance" |
| 43 | + value = aws_instance.kol-memory-viewer.key_name |
| 44 | +} |
| 45 | + |
| 46 | +output "instance_type" { |
| 47 | + description = "The instance type of the EC2 instance" |
| 48 | + value = aws_instance.kol-memory-viewer.instance_type |
| 49 | +} |
| 50 | + |
| 51 | +output "cpu_core_count" { |
| 52 | + description = "Number of CPU cores" |
| 53 | + value = aws_instance.kol-memory-viewer.cpu_core_count |
| 54 | +} |
| 55 | + |
| 56 | +output "cpu_threads_per_core" { |
| 57 | + description = "Number of threads per core" |
| 58 | + value = aws_instance.kol-memory-viewer.cpu_threads_per_core |
| 59 | +} |
| 60 | + |
| 61 | +output "ebs_optimized" { |
| 62 | + description = "Indicates whether the instance is EBS optimized" |
| 63 | + value = aws_instance.kol-memory-viewer.ebs_optimized |
| 64 | +} |
| 65 | + |
| 66 | +output "root_volume_id" { |
| 67 | + description = "ID of the root EBS volume" |
| 68 | + value = aws_instance.kol-memory-viewer.root_block_device[0].volume_id |
| 69 | +} |
| 70 | + |
| 71 | +output "root_volume_size" { |
| 72 | + description = "Size of the root volume in GB" |
| 73 | + value = aws_instance.kol-memory-viewer.root_block_device[0].volume_size |
| 74 | +} |
| 75 | + |
| 76 | +output "root_volume_type" { |
| 77 | + description = "Type of the root volume (gp3, gp2, io1, etc.)" |
| 78 | + value = aws_instance.kol-memory-viewer.root_block_device[0].volume_type |
| 79 | +} |
| 80 | + |
| 81 | +output "root_volume_iops" { |
| 82 | + description = "IOPS of the root volume" |
| 83 | + value = aws_instance.kol-memory-viewer.root_block_device[0].iops |
| 84 | +} |
| 85 | + |
| 86 | +output "root_volume_throughput" { |
| 87 | + description = "Throughput of the root volume in MiB/s" |
| 88 | + value = aws_instance.kol-memory-viewer.root_block_device[0].throughput |
| 89 | +} |
| 90 | + |
| 91 | +output "instance_details_json" { |
| 92 | + description = "Complete instance details in JSON format" |
| 93 | + value = jsonencode(aws_instance.kol-memory-viewer) |
| 94 | +} |
0 commit comments