I need to setup an automated process to report Security Hub findings regularly to the relevant member account based on AWS account ownership. In my investigation, I found the repository below that does what I was looking for. https://github.com/aws-samples/automated-security-hub-account-findings-reports
I added the relevant code to the repository and merged it into main, but the pipeline failed in apply stage because it needs a default value for parameter in CloudFormation template. my questions are:
1- Is this enough to only use resource "aws_cloudformation_stack" and use the CF template as source in it? or I need to create more resource when wanted to deploy a CF template using terraform?
2- I received below error once I tried to deploy CF template: Error: creating CloudFormation Stack (automated-security-hub-account-findings-reports): ValidationError: Parameters: [KMSKeyAdmin] must have values
my question is why I get that error when I'm using a cloud formation template which includes everything that needed? what should I do to resolve this issue?
Thanks