16 lines
527 B
Terraform
16 lines
527 B
Terraform
|
# 作成した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
|
||
|
}
|