bridgecrewio / terraform-aws-session-manager

Terraform module for deploying AWS Session Manager
Apache License 2.0
43 stars 46 forks source link

remove locals not used #10

Closed patelronak closed 3 years ago

patelronak commented 3 years ago

If I disable vpc endpoints

vpc_endpoints_enabled = false

I get the error listed below. These local vars are not used at all and can be removed.

Error: Invalid index

  on vpce.tf line 12, in locals:
  12:   subnet_ids_string = join(",", data.aws_subnet_ids.selected[0].ids)
    |----------------
    | data.aws_subnet_ids.selected is empty tuple
JamesWoolfenden commented 3 years ago

ive merged this into my currebnt change