Lab #6: Terraform Output Variables Example | Terraform Output Values | Terraform Outputs

preview_player
Показать описание
In this Video we are going to cover Terraform Output Variables Example | Terraform Output Values
#terraformoutputvariables #terraformoutputvalues #terraformtutorial

0:00 Introduction to Terraform output Values
9:41 How to Stop printing sensitive value in terraform output

Follow below code for How to Terraform Output Values

Syntax of output variables/values:
output "output_value"{
value = "welcome to devopshint"
}
provider "aws" {
region = "ap-south-1"
}
resource "aws_instance" "web" {
ami = "ami-0c1a7f89451184c8b"
key_name = "Dev-UbuntuKey"
tags= {
Name = "terraform demo"
}
}
output "output_values"{
value = "welcome to devopshint"
description = "This is output values"
}
provider "aws" {
region = "ap-south-1"
}
resource "aws_instance" "web" {
ami = "ami-0c1a7f89451184c8b"
key_name = "Dev-UbuntuKey"
tags= {
Name = "terraform demo"
}
}

output "public_dns"{
description = "this is output values"
}
3. Sensitive
In this example we can hide some sensitive data if user don’t want to show personal data to public in that time we can use sensitive = true
Example of sensitive values in terraform
provider "aws" {
region = "ap-south-1"
}
resource "aws_instance" "web" {
ami = "ami-0c1a7f89451184c8b"
key_name = "Dev-UbuntuKey"
tags= {
Name = "terraform demo"
}
}
output "public_dns"{
description = "this is output values"
sensitive = true
}

Related Articles:
How to Use Visual Studio code for Terraform | Creating EC2 Instance using Terraform

Lab #3 [Scenario-1]: How to Create VPC using Terraform | AWS VPC using Terraform | AWS Terraform

If you likes our video, please subscribe our channel on YouTube Channel
Рекомендации по теме
Комментарии
Автор

Thanks, Can you please upload Mongodb cluster setup with replication with highavailablity with x509 certification setup

nasreenb
welcome to shbcf.ru