Terraform Output

preview_player
Показать описание
Terraform output will help you to provide the details of resources created by terraform. It helps us to output the attribute of resource with output value.

Output “Resourcegroup” {
value = azurerm_resource_group.RG.name
}
output "StorageID" {
}
output "blobendpoint" {
}

Output value in AWS
----------------------------------

resource "aws_eip" “ip" {
vpc = true
}

output "eip" {
}

resource "aws_s3_bucket" "s3" {
bucket = “rajs3bucket"
}

output "mys3bucket" {
value = aws_s3_bucket.s3
}

Q. What all result we can export in output?
Ans: All the attributes available in Attribute reference, those all can be exported under output.
Рекомендации по теме
Комментарии
Автор

thanks for creating this series..it was really helpful

DBAmohansahu