# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 --- description: | ### Document Name - ASR-PCI_3.2.1_Redshift.1 ## What does this document do? This document disables public access to a Redshift cluster by calling another SSM document ## Input Parameters * Finding: (Required) Security Hub finding details JSON * AutomationAssumeRole: (Required) The ARN of the role that allows Automation to perform the actions on your behalf. * RemediationRoleName: (Optional) The name of the role that allows Automation to remediate the finding on your behalf. ## Documentation Links * [PCI Redshift.1](https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-pci-controls.html#pcidss-redshift-1) schemaVersion: '0.3' assumeRole: '{{AutomationAssumeRole}}' outputs: - 'Remediation.Output' - 'ParseInput.AffectedObject' parameters: Finding: type: 'StringMap' description: 'The input from the Orchestrator Step function for the PCI.Redshift.1 finding' AutomationAssumeRole: type: 'String' description: '(Required) The ARN of the role that allows Automation to perform the actions on your behalf.' allowedPattern: '^arn:(?:aws|aws-us-gov|aws-cn):iam::\d{12}:role/[\w+=,.@-]+$' RemediationRoleName: type: 'String' default: 'SO0111-DisablePublicAccessToRedshiftCluster' allowedPattern: '^[\w+=,.@-]+$' mainSteps: - name: 'ParseInput' action: 'aws:executeScript' inputs: InputPayload: Finding: '{{Finding}}' parse_id_pattern: '^arn:(?:aws|aws-cn|aws-us-gov):redshift:(?:[a-z]{2}(?:-gov)?-[a-z]+-\d):\d{12}:cluster:(?!.*--)([a-z][a-z0-9-]{0,62})(?