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.76k stars 9.12k forks source link

[Enhancement]: Inspector : support of Activation with Hybrid mode #37466

Open TomasD38 opened 4 months ago

TomasD38 commented 4 months ago

Description

New functionality of AWS on Inspector that is globally available : scanMode for ec2-configuration : EC2_SSM_AGENT_BASED or EC2_HYBRID

Available either directly on account when no organization, either on account of management in case of organization. This is an extension of the request #29014

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

*aws_inspector2_enabler (or a new Resource : aws_inspector2_configuration)

Potential Terraform Configuration

resource "aws_inspector2_configuration" "test" {
    ec2Configuration {
       scanMode = "EC2_SSM_AGENT_BASED" | "EC2_HYBRID"
    }
    ecr_configuration {
      rescan_duration = 'LIFETIME'|'DAYS_30'|'DAYS_180'
      pullDateRescanDuration= 'DAYS_14' | 'DAYS_30' | 'DAYS_60' | 'DAYS_90 | 'DAYS_180'
    }
}

References

https://docs.aws.amazon.com/inspector/v2/APIReference/API_UpdateConfiguration.html

Would you like to implement a fix?

None

github-actions[bot] commented 4 months ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue