Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AWS::NetworkManager:ConnectPeer] - [BUG] - ConnectAttachmentId #2266

Open
kaklaus opened this issue Feb 21, 2025 · 0 comments
Open

[AWS::NetworkManager:ConnectPeer] - [BUG] - ConnectAttachmentId #2266

kaklaus opened this issue Feb 21, 2025 · 0 comments
Labels

Comments

@kaklaus
Copy link

kaklaus commented Feb 21, 2025

Name of the resource

AWS::NetworkManager::ConnectPeer

Resource Name

No response

Issue Description

TransitGateway ConnectPeer is searching for ConnectAttachmentId pattern of ^attachment-([0-9a-f]{8,17})$ which is the old prefix format of TransitGateway Attachment Ids. An update is required for the current pattern of ^tgw-attach-([0-9a-f]{8,17})$

Expected Behavior

AWS::NetworkManager::ConnectPeer Properties ConnectAttachmentId pattern will required updated for the current pattern ^tgw-attach-([0-9a-f]{8,17})$

Observed Behavior

Behavior observed via LZA config deployment of customizations cloudformation templates while referencing both !Ref TransitGatewayConnect and !GetAtt TransitGatewayConnect.TransitGatewayAttachmentId

 ❌  Transit-Gateway-Connect-****-us-east-1 (Transit-Gateway-Connect) failed: Error: The stack named Transit-Gateway-Connect failed to deploy: UPDATE_ROLLBACK_COMPLETE: Resource handler returned message: "1 validation error detected: Value at 'connectAttachmentId' failed to satisfy constraint: Member must satisfy regular expression pattern: ^attachment-([0-9a-f]{8,17})$ (Service: NetworkManager, Status Code: 400, Request ID: **********)" (RequestToken: *****************, HandlerErrorCode: InvalidRequest), Resource handler returned message: "1 validation error detected: Value at 'connectAttachmentId' failed to satisfy constraint: Member must satisfy regular expression pattern: ^attachment-([0-9a-f]{8,17})$ (Service: NetworkManager, Status Code: 400, Request ID: *******)" (RequestToken: ***** HandlerErrorCode: InvalidRequest)
    at FullCloudFormationDeployment.monitorDeployment (/codebuild/output/src1839/src/s3/00/source/node_modules/aws-cdk/lib/api/deploy-stack.ts:523:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.deployStack (/codebuild/output/src1839/src/s3/00/source/node_modules/aws-cdk/lib/cdk-toolkit.ts:332:24)
    at async /codebuild/output/src1839/src/s3/00/source/node_modules/aws-cdk/lib/util/work-graph.ts:105:11

 ❌ Deployment failed: Error: The stack named Transit-Gateway-Connect failed to deploy: UPDATE_ROLLBACK_COMPLETE: Resource handler returned message: "1 validation error detected: Value at 'connectAttachmentId' failed to satisfy constraint: Member must satisfy regular expression pattern: ^attachment-([0-9a-f]{8,17})$ (Service: NetworkManager, Status Code: 400, Request ID: *********)" (RequestToken: ******, HandlerErrorCode: InvalidRequest), Resource handler returned message: "1 validation error detected: Value at 'connectAttachmentId' failed to satisfy constraint: Member must satisfy regular expression pattern: ^attachment-([0-9a-f]{8,17})$ (Service: NetworkManager, Status Code: 400, Request ID: *********)" (RequestToken: ********, HandlerErrorCode: InvalidRequest)
    at FullCloudFormationDeployment.monitorDeployment (/codebuild/output/src1839/src/s3/00/source/node_modules/aws-cdk/lib/api/deploy-stack.ts:523:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Object.deployStack (/codebuild/output/src1839/src/s3/00/source/node_modules/aws-cdk/lib/cdk-toolkit.ts:332:24)
    at async /codebuild/output/src1839/src/s3/00/source/node_modules/aws-cdk/lib/util/work-graph.ts:105:11
2025-02-21 16:11:10.756 | error | toolkit | The stack named Transit-Gateway-Connect failed to deploy: UPDATE_ROLLBACK_COMPLETE: Resource handler returned message: "1 validation error detected: Value at 'connectAttachmentId' failed to satisfy constraint: Member must satisfy regular expression pattern: ^attachment-([0-9a-f]{8,17})$ (Service: NetworkManager, Status Code: 400, Request ID: ***************)" (RequestToken: ************, HandlerErrorCode: InvalidRequest), Resource handler returned message: "1 validation error detected: Value at 'connectAttachmentId' failed to satisfy constraint: Member must satisfy regular expression pattern: ^attachment-([0-9a-f]{8,17})$ (Service: NetworkManager, Status Code: 400, Request ID: ***************)" (RequestToken: **********, HandlerErrorCode: InvalidRequest)
Deployment failed

Test Cases

Attempt to deploy any form of AWS::NetworkManager::ConnectPeer while referencing a ConnectAttachmentId

Other Details

No response

@kaklaus kaklaus added the bug label Feb 21, 2025
@kaklaus kaklaus changed the title [Resource Type] - [BUG] - ConnectAttachmentId [AWS::NetworkManager:ConnectPeer] - [BUG] - ConnectAttachmentId Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant