AWSSupportRemediator-EnableRedshiftClusterEnhancedVpcRouting
Description
Enables enhanced VPC routing on an Amazon Redshift cluster by calling the Amazon Redshift ModifyCluster API to set EnhancedVpcRouting to true.
This automation remediates findings identified by Amazon Well-Architected Agent. It remediates findings from Amazon Security Hub CSPM control Redshift clusters should use enhanced VPC routing.
If the Amazon Redshift cluster does not exist or already has enhanced VPC routing enabled, the automation completes successfully without making changes.
After the runbook enables enhanced VPC routing, Amazon Redshift routes all COPY and UNLOAD traffic through the cluster's Amazon Virtual Private Cloud (Amazon VPC). Your Amazon VPC must have network paths to Amazon Simple Storage Service (Amazon S3) and any other services that your COPY and UNLOAD statements use. Without these network paths, COPY and UNLOAD operations might fail after the runbook enables enhanced VPC routing. For more information, see Enhanced VPC routing in the Amazon Redshift Management Guide.
To disable enhanced VPC routing after enabling it, call the Amazon Redshift ModifyCluster API to set EnhancedVpcRouting to false.
You are responsible for reviewing automation actions before they run.
This automation might cause stack drift if the resource is part of an Amazon CloudFormation stack.
Access to
AWSSupportRemediator-*runbooks requires an active Business Support+, Enterprise Support, or Unified Operations Support plan. For more information, see Compare Amazon Web Services Support Planson the Amazon website.
Document type
Automation
Owner
Amazon
Platforms
Linux, macOS, Windows
Parameters
-
AutomationAssumeRole
Type: String
Description: (Optional) 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. If no role is specified, Systems Manager Automation uses the permissions of the user that starts this runbook.
-
ClusterIdentifier
Type: String
Description: (Required) The unique identifier of the Amazon Redshift cluster on which to enable enhanced VPC routing.
Required IAM permissions
The AutomationAssumeRole parameter requires the following actions to
use the runbook successfully.
-
redshift:DescribeClusters -
redshift:ModifyCluster
Document Steps
-
validateCluster - Checks whether the specified Amazon Redshift cluster exists and whether it already has enhanced VPC routing enabled. Returns no change required when the cluster does not exist or already has enhanced VPC routing enabled.
-
branchOnChangeRequired - Branches on whether the runbook needs to enable enhanced VPC routing. Continues to
modifyClusterwhenvalidateCluster.ChangeRequiredistrue. Otherwise, ends the automation successfully. -
modifyCluster - Calls the Amazon Redshift
ModifyClusterAPI to setEnhancedVpcRoutingtotrueon the cluster. -
waitForEnhancedVpcRoutingEnabled - Waits for the cluster's
EnhancedVpcRoutingproperty to becometrueaftermodifyClusterruns. On timeout, continues toassertEnhancedVPCRouting, which fails with a clear terminal error. -
assertEnhancedVPCRouting - Asserts that the cluster's
EnhancedVpcRoutingproperty istrue, ensuring the automation reports success only after observing the change.
Outputs
-
validateCluster.ChangeRequired: Indicates whether the runbook needs to enable enhanced VPC routing.
falsewhen the Amazon Redshift cluster does not exist or already has enhanced VPC routing enabled. -
validateCluster.ValidationMessage: Explains why the runbook takes no action, or
N/Awhen the runbook enables enhanced VPC routing.