Skip to content

Commit

Permalink
v1.0.3: add security_groups output
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 12, 2021
1 parent 2deb914 commit bc20e8c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@
* v1.0.2 -- 20210505
- add nacls, nacls-rules
- move variables into more common things and make links

* v1.0.3 -- 20210512
- security-groups
- add output of security_groups map(object{name,id,arn})
2 changes: 1 addition & 1 deletion common/version.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
locals {
_module_version = "1.0.2"
_module_version = "1.0.3"
}
4 changes: 3 additions & 1 deletion security-groups/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,6 @@ No requirements.

## Outputs

No outputs.
| Name | Description |
|------|-------------|
| <a name="output_security_groups"></a> [security\_groups](#output\_security\_groups) | Security Group map(object{name, id, arn}) |
20 changes: 20 additions & 0 deletions security-groups/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
output "security_groups" {
description = "Security Group map(object{name, id, arn})"
value = {
it-linux-base = {
name = "it-linux-base"
id = module.sg-linux-base.this_security_group_id
arn = module.sg-linux-base.this_security_group_arn
}
it-windows-base = {
name = "it-windows-base"
id = module.sg-windows-base.this_security_group_id
arn = module.sg-windows-base.this_security_group_arn
}
ois-scanner = {
name = "ois-scanner"
id = module.sg-ois-scanner.this_security_group_id
arn = module.sg-ois-scanner.this_security_group_arn
}
}
}

0 comments on commit bc20e8c

Please sign in to comment.