This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apply complete! Resources: 0 added, 0 changed, 0 destroyed. | |
Outputs: | |
greeting = "hello foo from us-west-1a" | |
json_result = "{\"age\":20,\"name\":\"foo\"}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apply complete! Resources: 0 added, 0 changed, 0 destroyed. | |
Outputs: | |
greeting = "hello foo from xxx" | |
json_result = "{\"age\":20,\"name\":\"foo\"}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "aws_region" { | |
default = "us-west-1a" | |
} | |
locals { | |
person = { | |
name = "foo" | |
age = 20 | |
} | |
} | |
output "json_result" { | |
value = jsonencode(local.person) | |
} | |
output "greeting" { | |
value = "hello ${local.person.name} from ${var.aws_region}" | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00: | |
terraform apply -auto-approve | |
terraform show | |
01: | |
terraform output | |
02: | |
terraform apply -auto-approve -var='aws_region="xxx"' | |
fmt: | |
terraform fmt | |
init: | |
terraform init | |
.PHONY: init fmt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment