1
0
Fork 0
terraform-training/04_modules/base.tf

10 lines
192 B
Terraform
Raw Normal View History

2020-05-13 10:26:38 +02:00
module "my_module" {
source = "../module1"
2020-05-13 10:45:51 +02:00
instance_name = "cedric-instance1"
2020-05-13 10:26:38 +02:00
}
2020-05-13 11:49:50 +02:00
output "ip" {
description = "public IP of the instance"
value = module.my_module.instance1_public_ip
}