Terraform 101 - Crash Course | Dynamic Blocks | #20

preview_player
Показать описание
Technology is changing fast, are you keeping up? Can't track of all the latest trends?

Change that today. It's me, TJ Addams and I will help you find your way and succeed in the complex world of DevOps.

Make sure to subscribe to the Warp 9 YouTube channel for game-changing career advice and DevOps news and tools.

Stay safe and I'll see you soon.
Рекомендации по теме
Комментарии
Автор

Thanks for this! Studying for the exam but couldn't wrap my head around the documentation, this helped clear things up :)

ob
Автор

Hi TJ, Hope you are doing good. I have a question related to this vodeo. I am thinking of creating a variable which will contain list within list .. the list within list will contain whol info about a rule ..for ex.
variable "elb_ingress_rule" {
description = "values must be in sequence [from_port, to_port, protocol, cidr_blocks, security_group, description]"
}

elb_ingress_rule = [
[80, 80, "tcp", [0.0.0.0/0], "", "traffic from Internet on port 80"],
[443, 443, "tcp", [0.0.0.0/0], "", "traffic from Internet on port 443"]
]

But i am unable to work this out after watching your video. I tried many combination to work this out but didn't worked.

I want to gather the info about rules in a list form and then create rules. Note: I have added in index 3 (for cidr_sunets) and 4 (for subnet_groups) to define, but as you know we can't define both at the same rule .So I also need to make sure if any one of them is not available it should not throw error.

Is there a way I can do this as I unable to find that. I can see either i do via your way then I canT define description and may things like in egress if i need to give range 3000 -65000.

Could you please direct me where I can find a solution for this.

Thanks in advance..

HS-wvct