cdklabs / cdk-monitoring-constructs

Easy-to-use CDK constructs for monitoring your AWS infrastructure
https://constructs.dev/packages/cdk-monitoring-constructs
Apache License 2.0
443 stars 55 forks source link

Console URL for SQS has changed #502

Closed oceanofmaya closed 3 months ago

oceanofmaya commented 3 months ago

Version

v7.7.0

Steps and/or minimal code example to reproduce

Enable monitoring for a stack that has SQS queues and generate a CloudWatch Dashboard. In the dashboard the queue name is an hyperlink that is supposed to take you to the queue in AWS console. It stopped working as AWS console URL for queues has changed from .../sqs/v2 to ...sqs/v3/...

Expected behavior

The URL it should link to https://${region}.console.aws.amazon.com/sqs/v3/home?region=${region}#/queues/${queueUrl}

Actual behavior

The URL it currently links to https://${region}.console.aws.amazon.com/sqs/v2/home?region=${region}#/queues/${queueUrl}

Other details

AwsConsoleUrlFactory needs to be updated at https://github.com/cdklabs/cdk-monitoring-constructs/blob/12cdccc24e8d753fafec3b74ea653ccad029d376/lib/common/url/AwsConsoleUrlFactory.ts#L148 to use the updated URL