cloudformation-coverage-roadmap icon indicating copy to clipboard operation
cloudformation-coverage-roadmap copied to clipboard

[AWS::QuickSight::VPCConnection] - [BUG] - Performing GET on CREATE

Open Rizxcviii opened this issue 1 year ago • 0 comments
trafficstars

Name of the resource

AWS::QuickSight::VPCConnection

Resource Name

No response

Issue Description

When creating a VPC Connection, it performs a call similar to a GET request, rather than trying to create the VPC.

Expected Behavior

Creates a VPC using the resource properties

Observed Behavior

Tries to get a current VPC connection with the specified vpcConnectionId

VPCConnection Resource handler returned message: "Resource of type 'AWS::QuickSight::VPCConnection' with identifier 'us-east-1-test' was not found." (RequestToken: xxxxxxxxxxxxxxxxxxxxxx, HandlerErrorCode: NotFound)

Test Cases

This was done in TypeScript using the CDK, but it was an L1 construct, so directly called within CloudFormation. Trying to create this will instead try to get a current VPC with the vpcConnectionId

new quicksight.CfnVPCConnection(this, 'VPCConnection', {
  name: 'VPC Connection',
  vpcConnectionId: 'us-east-1-test',
  subnetIds: [subnet.subnetId],
  roleArn: role.roleArn,
  securityGroupIds: [securityGroup.securityGroupId],
  awsAccountId: this.account,
});

Other Details

No response

Rizxcviii avatar Aug 15 '24 11:08 Rizxcviii