Terraform version : 11.11
I am working on creating a custom config rule resource using below code, however the compliance_resource_types is getting set to
["AWS::EC2::Instance"] instead of ["AWS::EC2::SecurityGroup"].
Appreciate if someone can guide me on how to proceed.
`resource "aws_config_config_rule""remove_sg_open_to_world" { name = "security_group_not_open_to_world" description = "Rule to remove SG ports if open to public" source { owner = "CUSTOM_LAMBDA" source_identifier = "arn:aws:lambda:${var.current_region}:xxxxxxxxx:function:remove_sg_open_to_world" source_detail { message_type = "ConfigurationItemChangeNotification" } } scope { compliance_resource_types = ["AWS::EC2::SecurityGroup"] } depends_on = ["aws_config_configuration_recorder.config"]