Please vote on this issue by adding a π reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
The resources and data sources in this provider are generated from the CloudFormation schema, so they can only support the actions that the underlying schema supports. For this reason submitted bugs should be limited to defects in the generation and runtime code of the provider. Customizing behavior of the resource, or noting a gap in behavior are not valid bugs and should be submitted as enhancements to AWS via the CloudFormation Open Coverage Roadmap.
Terraform CLI and Terraform AWS Cloud Control Provider Version
Based on the scan configuration input, every input is optional. For example, with the configuration below where targets is not provided , terraform apply fails.
Expected to have the scan configuration deployed. Plan honors the requirement levels, but the API rejects the input on apply.
Actual Behavior
With targets missing :
β·
β Error: AWS SDK Go Service Operation Incomplete
β
β with awscc_inspectorv2_cis_scan_configuration.example,
β on main.tf line 1, in resource "awscc_inspectorv2_cis_scan_configuration" "example":
β 1: resource "awscc_inspectorv2_cis_scan_configuration" "example" {
β
β Waiting for Cloud Control API service CreateResource operation completion
β returned: waiter state transitioned to FAILED. StatusMessage: 1 validation
β error detected: Value at 'targets' failed to satisfy constraint: Member must
β not be null (Service: Inspector2, Status Code: 400, Request ID:
β df786bf8-789d-4fd4-8c2c-4153a8c9568c). ErrorCode: InvalidRequest
With all missing :
β·
β Error: AWS SDK Go Service Operation Incomplete
β
β with awscc_inspectorv2_cis_scan_configuration.example,
β on main.tf line 1, in resource "awscc_inspectorv2_cis_scan_configuration" "example":
β 1: resource "awscc_inspectorv2_cis_scan_configuration" "example" {
β
β Waiting for Cloud Control API service CreateResource operation completion
β returned: waiter state transitioned to FAILED. StatusMessage: 4 validation
β errors detected: Value at 'securityLevel' failed to satisfy constraint:
β Member must not be null; Value at 'schedule' failed to satisfy constraint:
β Member must not be null; Value at 'scanName' failed to satisfy constraint:
β Member must not be null; Value at 'targets' failed to satisfy constraint:
β Member must not be null (Service: Inspector2, Status Code: 400, Request ID:
β c4a8eb98-e631-430c-a5ce-406a89897f56). ErrorCode: InvalidRequest
Community Note
Terraform CLI and Terraform AWS Cloud Control Provider Version
Affected Resource(s)
Terraform Configuration Files
Based on the scan configuration input, every input is optional. For example, with the configuration below where targets is not provided , terraform apply fails.
Debug Output
Panic Output
Expected Behavior
Actual Behavior
With targets missing :
With all missing :
Steps to Reproduce
terraform apply
Important Factoids
References