diff --git a/ois-scanner/README.md b/ois-scanner/README.md index a71e133..6e2ea16 100644 --- a/ois-scanner/README.md +++ b/ois-scanner/README.md @@ -11,6 +11,7 @@ for the CAT environment, but we'll tackle that when we get to it. 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 = { } @@ -31,6 +32,14 @@ Type: `string` The following input variables are optional (have default values): +### name + +Description: Security group Name + +Type: `string` + +Default: `"ois-scanner"` + ### tags Description: Extra security group tags @@ -39,3 +48,15 @@ Type: `map` Default: `` +## Outputs + +The following outputs are exported: + +### this\_security\_group\_arn + +Description: Created security group ARN + +### this\_security\_group\_id + +Description: Created security group ID + diff --git a/ois-scanner/main.tf b/ois-scanner/main.tf index 2b72268..1eaeb04 100644 --- a/ois-scanner/main.tf +++ b/ois-scanner/main.tf @@ -52,8 +52,6 @@ resource "aws_security_group" "this_security_group" { } tags = "${merge( - map("CostAllocation", "csvd:infrastructure"), - map("Environment", "csvd-infrastructure"), map("Name", "sg-${var.name}"), var.tags, )}" diff --git a/ois-scanner/outputs.tf b/ois-scanner/outputs.tf deleted file mode 100644 index e69de29..0000000 diff --git a/ois-scanner/variables.tf b/ois-scanner/variables.tf index d905a8b..bef1644 100644 --- a/ois-scanner/variables.tf +++ b/ois-scanner/variables.tf @@ -11,5 +11,8 @@ variable "tags" { description = "Extra security group tags" type = "map" - default = { } + default = { + "CostAllocation" = "csvd:infrastructure" + "Environment" = "csvd-infrastructure" + } }