New to Terraform land, I research a way to convert json to hcl. Terraform command provides --json flag to ocnvert hcl to json. Trying to use jq, first need to learn how to convert json back to hcl. Any help or suggestions are welcome
Great content as always Ned, appreciate the in depth approach. Working my way through your Exam prep guide as we speak so it's useful to have these type of videos to expand on some of the concepts.
Agreed, I watched a lot of Terraform Tuesdays and also used Ned's exam guide in order to pass the exam (just wrote it last week, it's a lot easier than I expected, I was done in 30 minutes).
Awesome! Congrats on passing! I didn't think the exam was that tough either, but I also work with Terraform a lot. For the complete novice, I think it presents enough of a challenge.
@@NedintheCloud agreed! I'm making the switch from CloudFormation so it's not too bad. What are your thoughts on the Vault and Consul certs in terms of difficulty and value?
The Vault cert wasn't too hard for me, since I have been pretty immersed in the tech. Not sure on its value just yet. I haven't attempted the Consul cert since I don't really use the software. I'd recommend checking out Bryan Krausen's prep stuff for Consul. If I had to guess, I think the HashiCorp certs will become more important with time and especially once they introduce the next tier of certs that are practical-based.
Hey Ned. Great video as always. Quick question, how do we output values from a resource that uses a for each please? And likewise, if wanting to reference an output from a resource using for each, how is that achieved? Thanks
If you've created a resource with for_each, the resource address now refers for a list of resources. For instance if I had a block like this: resource "aws_subnet" "subnets" { for_each = {} } It would create a set of aws_subnets. I could refer to an attribute of the subnets using the syntax: aws_subnet.subnets.*. That would return a list of the attributes for each subnet. You could also loop through the subnets with a for loop.
@@NedintheCloud I have the exact same issue, but I still can't figure it out, can you create an example on how to output data from a child module when the child module is using a for_each please?
What's the vscode plugin that is showing the "reference' to the code blocks?
New to Terraform land, I research a way to convert json to hcl. Terraform command provides --json flag to ocnvert hcl to json. Trying to use jq, first need to learn how to convert json back to hcl. Any help or suggestions are welcome
Great video Ned!!
as always very clear and useful
Great content as always Ned, appreciate the in depth approach. Working my way through your Exam prep guide as we speak so it's useful to have these type of videos to expand on some of the concepts.
Agreed, I watched a lot of Terraform Tuesdays and also used Ned's exam guide in order to pass the exam (just wrote it last week, it's a lot easier than I expected, I was done in 30 minutes).
Best of luck!
Awesome! Congrats on passing! I didn't think the exam was that tough either, but I also work with Terraform a lot. For the complete novice, I think it presents enough of a challenge.
@@NedintheCloud agreed! I'm making the switch from CloudFormation so it's not too bad. What are your thoughts on the Vault and Consul certs in terms of difficulty and value?
The Vault cert wasn't too hard for me, since I have been pretty immersed in the tech. Not sure on its value just yet. I haven't attempted the Consul cert since I don't really use the software. I'd recommend checking out Bryan Krausen's prep stuff for Consul.
If I had to guess, I think the HashiCorp certs will become more important with time and especially once they introduce the next tier of certs that are practical-based.
Thank you brother for terraform serious
can we use terraform output values as tags
Hey Ned. Great video as always. Quick question, how do we output values from a resource that uses a for each please? And likewise, if wanting to reference an output from a resource using for each, how is that achieved? Thanks
If you've created a resource with for_each, the resource address now refers for a list of resources. For instance if I had a block like this:
resource "aws_subnet" "subnets" {
for_each = {}
}
It would create a set of aws_subnets. I could refer to an attribute of the subnets using the syntax:
aws_subnet.subnets.*.
That would return a list of the attributes for each subnet. You could also loop through the subnets with a for loop.
@@NedintheCloud thank you!
@@NedintheCloud I have the exact same issue, but I still can't figure it out, can you create an example on how to output data from a child module when the child module is using a for_each please?
Very useful - Thanks !
Great Videos