Relative Content

Tag Archive for terraform

Conditionally add property to object

I wish to add ingress rules to a security group, and I need to allow users to do this through variables while specifying only the name, description and either a cidr_block or a security_group_id.

Unable to use VARs from a tfvars file in Terraform

I am new in Terraform. I am trying to setup some scripts for managing Cisco Catalyst Center (new name of Cisco DNA, but I am using the DNA Provider anyway 🙂 ). I used an existing repo, that I’ve modified.
I have structure that looks like this:

How to run this terraform nested for loop?

I’ve been trying to make this work, but just can’t figure it out.
Can you please help?
It should iterate over the private and public route, but also over the cidr_blocks for each type of route.