resource "aws_instance" "myec23" {
ami = "ami-08f63db601b82ff5f"
instance_type = "t2.large"
tags = {
name = "myec3"
}
}
output "hello" {
value = aws_instance.myec23.id
}
module "helloworld"
{
source = "./parentmoduleloaction”
}
To acess the ouput values in modules we need to fallow the syntax
output "vn"{
value=module.mn.routputvariablename.atrn
}
We bring you the best Premium WordPress Themes that perfect for news, magazine, personal blog, etc. Check our landing page for details.
© 2021 TheTerraform.in - All Rights Reserved.
Designed By TenXinfotech.