From 5ef848837c948d619d539abf1e0ad3775dced3e6 Mon Sep 17 00:00:00 2001 From: Don Badrak Date: Tue, 2 Jul 2019 09:54:42 -0400 Subject: [PATCH] update --- ois-scanner/main.tf | 6 +++--- ois-scanner/variables.tf | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ois-scanner/main.tf b/ois-scanner/main.tf index 2eabff7..1289c55 100644 --- a/ois-scanner/main.tf +++ b/ois-scanner/main.tf @@ -12,6 +12,7 @@ * module "ois-scanner" { * source = "git::https://vc1.csvd.census.gov/terraform-modules/aws-common-security-groups.git//ois-scanner" * +* # name = "ois-scanner" * vpc_id = "${var.vpc_id}" * # Name, CostAllocation, and Environment are pre-set * # tags = { } @@ -20,7 +21,6 @@ */ locals { - name = "ois-scanner" ipv4_cidr = [ "148.129.121.0/24", "148.129.21.0/24", @@ -32,11 +32,11 @@ locals { ] } -module "ois-scanner" { +module "this_security_group" { # source = "terraform-aws-modules/security-group/aws" # version = "2.17.0" - name = "${local.name}" + name = "${var.name}" description = "common: allows OIS scanners and OIS subnets full access for compliance scanning" vpc_id = "${var.vpc_id}" diff --git a/ois-scanner/variables.tf b/ois-scanner/variables.tf index b54a0a1..d905a8b 100644 --- a/ois-scanner/variables.tf +++ b/ois-scanner/variables.tf @@ -2,6 +2,11 @@ variable "vpc_id" { description = "VPC ID Number" } +variable "name" { + description = "Security group Name" + default = "ois-scanner" +} + variable "tags" { description = "Extra security group tags"