hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.85k stars 9.2k forks source link

[New Resource]: aws_inspector2_cis_scan_configuration #40187

Open petrzjunior opened 3 days ago

petrzjunior commented 3 days ago

Description

AWS Inspector supports running CIS security scans on EC2 instances from the AWS Console. It is particularly useful with the Schedule option which triggers CIS scans periodically.

Requested Resource(s) and/or Data Source(s)

Potential Terraform Configuration

resource aws_inspector2_cis_scan_configuration monthly_cis {
  scan_name = "monthly-cis-scan"
  schedule = {
    monthly {
      day = "SAT"
      start_time = "12:45"
    }
  }
  security_level = "LEVEL_1"
  targets = {
    account_ids = "1234567980
    target_resource_tags = {
      "environment": ["dev", "prod"]
    }
  }
  tags = {
    "owner" = "terraform"
  }
}

References

https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/inspector2#Client.CreateCisScanConfiguration

Would you like to implement a fix?

No

github-actions[bot] commented 3 days ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue