Using CloudFormation, how do I associate a VPC to a Redshift Serverless workgroup?

70 Views Asked by At

The AWS::RedshiftServerless::Workgroup Cloudformation spec does not have a VPC property, but it has subnets and security groups:

Example:

RedshiftServerlessNamespace:
  Type: AWS::RedshiftServerless::Namespace
  Properties:
    DbName: <redacted>
    NamespaceName: <redacted>
    IamRoles:
      - <redacted>

RedshiftServerlessWorkgroup:
  Type: AWS::RedshiftServerless::Workgroup
  Properties:
    BaseCapacity: 8
    NamespaceName: <redacted>
    WorkgroupName: <redacted>
    SubnetIds:
      - <redacted>
  DependsOn: RedshiftServerlessNamespace

When I add subnets from the VPC I want I receive the following error message:

Updating the workgroup with subnet IDs [...] from a different VPC subnet is not currently supported

How do I associate the VPC I want - using CloudFormation?

0

There are 0 best solutions below