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?