Skip to content

Commit

Permalink
update to output sg id and arn
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jul 2, 2019
1 parent cf8d449 commit af51403
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
21 changes: 21 additions & 0 deletions ois-scanner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = { }
Expand All @@ -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
Expand All @@ -39,3 +48,15 @@ Type: `map`

Default: `<map>`

## Outputs

The following outputs are exported:

### this\_security\_group\_arn

Description: Created security group ARN

### this\_security\_group\_id

Description: Created security group ID

2 changes: 0 additions & 2 deletions ois-scanner/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)}"
Expand Down
Empty file removed ois-scanner/outputs.tf
Empty file.
5 changes: 4 additions & 1 deletion ois-scanner/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ variable "tags" {
description = "Extra security group tags"

type = "map"
default = { }
default = {
"CostAllocation" = "csvd:infrastructure"
"Environment" = "csvd-infrastructure"
}
}

0 comments on commit af51403

Please sign in to comment.