CMDB-Server/ec2-user/deploy/userXX/step1/output.tf

16 lines
527 B
Terraform
Raw Normal View History

2025-07-03 17:24:43 +09:00
# 作成したEC2のプライベートIPを出力
output "instance_private_ip" {
description = "The private IP address of the instance"
value = aws_instance.handson_web1.private_ip
}
# 作成したEC2のパブリックIPを出力
output "instance_public_ip" {
description = "The public IP address of the instance"
value = aws_instance.handson_web1.public_ip
}
# 作成したEC2のIdを出力
output "instance_ec2_id" {
description = "ec2 id of the instance"
value = aws_instance.handson_web1.id
}