Skip to content

Commit

Permalink
fix: Remove duplicate data statements (#130)
Browse files Browse the repository at this point in the history
* removed duplicates

* fmt
  • Loading branch information
George Scott authored Aug 29, 2023
1 parent 1345112 commit ae7e6b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
11 changes: 0 additions & 11 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,6 @@ locals {
bucket_queue_name = local.use_internal_queue ? null : module.file_storage.0.bucket_queue_name
}

data "aws_s3_bucket" "file_storage" {
depends_on = [module.file_storage]
bucket = local.bucket_name
}

data "aws_sqs_queue" "file_storage" {
count = local.use_internal_queue ? 0 : 1
depends_on = [module.file_storage]
name = local.bucket_queue_name
}

module "networking" {
source = "./modules/networking"
namespace = var.namespace
Expand Down
10 changes: 5 additions & 5 deletions modules/networking/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ module "vpc" {

create_vpc = var.create_vpc

azs = data.aws_availability_zones.available.names
cidr = var.cidr
create_igw = true
customer_gateways = var.customer_gateways
database_subnets = var.database_subnet_cidrs
azs = data.aws_availability_zones.available.names
cidr = var.cidr
create_igw = true
customer_gateways = var.customer_gateways
database_subnets = var.database_subnet_cidrs
# setting these to empty shouldn't interfere
# with SG rules attached to SGs
default_security_group_egress = []
Expand Down

0 comments on commit ae7e6b2

Please sign in to comment.