AWSConfigRemediation-EnableWAFClassicRegionalLogging
Description
The AWSConfigRemediation-EnableWAFClassicRegionalLogging
runbook
enables logging to Amazon Kinesis Data Firehose (Kinesis Data Firehose) for the Amazon WAF web access control list (ACL) you
specify.
Document type
Automation
Owner
Amazon
Platforms
Linux, macOS, Windows
Parameters
-
AutomationAssumeRole
Type: String
Allowed values: ^arn:(?:aws|aws-us-gov|aws-cn):iam::\d{12}:role\/[\w+=,.@/-]+$
Description: (Required) The Amazon Resource Name (ARN) of the Amazon Identity and Access Management (IAM) role that allows Systems Manager Automation to perform the actions on your behalf.
-
LogDestinationConfigs
Type: String
Description: (Required) The Amazon Resource Name (ARN) of the Kinesis Data Firehose delivery stream that you want to send logs to.
-
WebACLId
Type: String
Description: (Required) The ID of the Amazon WAF web ACL that you want to enable logging on.
Required IAM permissions
The AutomationAssumeRole
parameter requires the following actions to
successfully use the runbook.
-
ssm:StartAutomationExecution
-
ssm:GetAutomationExecution
-
iam:CreateServiceLinkedRole
-
waf-regional:GetLoggingConfiguration
-
waf-regional:GetWebAcl
-
waf-regional:PutLoggingConfiguration
Document Steps
-
aws:executeAwsApi
- Gathers the ARN of the Amazon WAF web ACL specified in theWebACLId
parameter. -
aws:executeAwsApi
- Enables logging for the web ACL. -
aws:assertAwsResourceProperty
- Verifies logging has been enabled on the Amazon WAF web ACL.