Skip to content

Commit

Permalink
docs/resource/aws_securityhub_standards_subscription: Add PCI standar…
Browse files Browse the repository at this point in the history
…d examples and docs (hashicorp#12090)
  • Loading branch information
mwarkentin authored and adamdecaf committed May 28, 2020
1 parent 09eb9d1 commit f863a84
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions website/docs/r/securityhub_standards_subscription.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ Subscribes to a Security Hub standard.
```hcl
resource "aws_securityhub_account" "example" {}
resource "aws_securityhub_standards_subscription" "example" {
resource "aws_securityhub_standards_subscription" "cis" {
depends_on = ["aws_securityhub_account.example"]
standards_arn = "arn:aws:securityhub:::ruleset/cis-aws-foundations-benchmark/v/1.2.0"
}
resource "aws_securityhub_standards_subscription" "pci_321" {
depends_on = ["aws_securityhub_account.example"]
standards_arn = "arn:aws:securityhub:us-east-1::standards/pci-dss/v/3.2.1"
}
```

## Argument Reference
Expand All @@ -32,6 +37,7 @@ Currently available standards:
| Name | ARN |
|---------------------|-----------------------------------------------------------------------|
| CIS AWS Foundations | `arn:aws:securityhub:::ruleset/cis-aws-foundations-benchmark/v/1.2.0` |
| PCI DSS | `arn:aws:securityhub:us-east-1::standards/pci-dss/v/3.2.1` |

## Attributes Reference

Expand All @@ -44,5 +50,6 @@ The following attributes are exported in addition to the arguments listed above:
Security Hub standards subscriptions can be imported using the standards subscription ARN, e.g.

```
$ terraform import aws_securityhub_standards_subscription.example arn:aws:securityhub:eu-west-1:123456789012:subscription/cis-aws-foundations-benchmark/v/1.2.0
$ terraform import aws_securityhub_standards_subscription.cis arn:aws:securityhub:eu-west-1:123456789012:subscription/cis-aws-foundations-benchmark/v/1.2.0
$ terraform import aws_securityhub_standards_subscription.pci_321 arn:aws:securityhub:eu-west-1:123456789012:subscription/pci-dss/v/3.2.1
```

0 comments on commit f863a84

Please sign in to comment.