Skip to content

Commit

Permalink
conformance-pack module fix for hardcoded name of resource (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximmi authored Aug 12, 2021
1 parent a5d1065 commit 3b28402
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions examples/hipaa/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ module "aws_config" {
module "hipaa_conformance_pack" {
source = "../../modules/conformance-pack"
context = module.this.context
name = "operational-best-practices-for-HIPAA-Security"

conformance_pack = "https://raw.githubusercontent.com/awslabs/aws-config-rules/master/aws-config-conformance-packs/Operational-Best-Practices-for-HIPAA-Security.yaml"
parameter_overrides = {
Expand Down
2 changes: 2 additions & 0 deletions modules/conformance-pack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ module "hipaa_conformance_pack" {
# Cloud Posse recommends pinning every module to a specific version
# version = "x.x.x"
name = "Operational-Best-Practices-for-HIPAA-Security"
conformance_pack="https://raw.githubusercontent.com/awslabs/aws-config-rules/master/aws-config-conformance-packs/Operational-Best-Practices-for-HIPAA-Security.yaml"
parameter_overrides = {
AccessKeysRotatedParamMaxAccessKeyAge = "45"
Expand Down
4 changes: 2 additions & 2 deletions modules/conformance-pack/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
resource "aws_config_conformance_pack" "hipaa" {
name = "operational-best-practices-for-HIPAA-Security"
resource "aws_config_conformance_pack" "default" {
name = module.this.name

dynamic "input_parameter" {
for_each = var.parameter_overrides
Expand Down
2 changes: 1 addition & 1 deletion modules/conformance-pack/outputs.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
output "arn" {
value = aws_config_conformance_pack.hipaa.arn
value = aws_config_conformance_pack.default.arn
}

0 comments on commit 3b28402

Please sign in to comment.