Terraform Variables and Locals - Daily Check-in for May 5, 2020

preview_player
Показать описание
It's #TerraformTuesday and I'm talking about #Terraform Variables and Locals

-----------------------------------------------------------------------------------------------------

Рекомендации по теме
Комментарии
Автор

Thanks a lot. The difference b/w locals and variables and their scope is well explained.

prashanthchalla
Автор

More videos please! Clear and concise explanation. Thanks!

Constantine
Автор

How about using variables with terraform enterprise and cli?

robertgoodall
Автор

Hello Ned, I have been trying the samples from your Pluralsight but they seem to be not updated to the current version.. I'm starting to learn so I don't understand the error messages

marciapelaez
Автор

it's normal to search ami_id
i use output & filter for that for moment - i begin in terraform ;-)

i know that we can i have the modules for that: find_ami for example
but we can do same thing with something query in terraform ?

# search amazon_linux_id for my intances.tf
data "aws_ami" "amazon" {
most_recent = true
owners = ["amazon"]

filter {
name = "virtualization-type"
values = ["hvm"]
}

filter {
name = "description"
values = ["Amazon Linux *"]
}

filter {
name = "architecture"
values = ["x86_64"]
}
}

for cheating
variables.tf
ami_id= <findOud via awsConsole>

instances.tf
ami_id = var.ami_id

it's work, but not clean or expert [joke] !?

thnks

Boliccov
join shbcf.ru