diff --git a/main.tf b/main.tf index 6b635d1..36f53c2 100644 --- a/main.tf +++ b/main.tf @@ -3,7 +3,7 @@ data "aws_vpc" "vpc" { } locals { - vpc_name = lookup(data.aws_vpc.vpc.tags, "Name", var.vpc_id) + vpc_name = replace(lookup(data.aws_vpc.vpc.tags, "Name", var.vpc_id), ".", "-") } resource "random_id" "salt" {