I'd like to retrieve data on findings such as the product ARN of a specific finding. This would allow me to continue suppressing findings in code without having to hard code the ARN
Requested Resource(s) and/or Data Source(s)
aws_securityhub_finding
aws_securityhub_findings
Potential Terraform Configuration
# returns one result or an error
data "aws_securityhub_finding" {
filter {
name = "AwsAccountId"
comparison = "EQUALS"
value = "012345678912"
}
filter {
name = "Id"
comparison = "EQUALS"
value = "<findings-id>"
}
}
# similar to above only it returns zero or a list
data "aws_securityhub_findings" {
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.
Volunteering to Work on This Issue
If you are interested in working on this issue, please leave a comment.
If this would be your first contribution, please review the contribution guide.
Description
I'd like to retrieve data on findings such as the product ARN of a specific finding. This would allow me to continue suppressing findings in code without having to hard code the ARN
Requested Resource(s) and/or Data Source(s)
Potential Terraform Configuration
References
Would you like to implement a fix?
None