Terraform : A Beginner's Guide
This article presents what I think is the minimum information needed to start using Terraform.
oracle miscconfigurationintermediate
by OracleDba
13 views
This article presents what I think is the minimum information needed to start using Terraform.
1234567891011
variable "my_variable" {
type = string
default = "default-value"
}
output "my_variable_output" {
value = var.my_variable
}
cd C:\git\oraclebase\terraform\beginners\intro
terraform init123456789101112131415161718
terraform plan
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
Terraform will perform the following actions:
Plan: 0 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ my_variable_output = "default-value"
------------------------------------------------------------------------
Note: You didn't specify an "-out" parameter to save this plan, so Terraform
can't guarantee that exactly these actions will be performed if
"terraform apply" is subsequently run.
terraform plan -out=plan.out12345678
terraform apply -var="my_variable=melon" -auto-approve
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Outputs:
my_variable_output = "melon"
terraform apply plan.outPlease to add comments
No comments yet. Be the first to comment!