Terraform subnets

Job ID: 34316252

Budget: $10 – $30 USD

I need a code snippet i have a set of subnet’s how do i assign the subnets which are available automatically using terraform? Ex : [“subnet-a”,”subnet-b”,”subnet-c”, “subnet-d”]

I want to pick the two available subnets from given set for module A and module B?
Related categories: Amazon Web Services Terraform