Skip to content

Commit

Permalink
fix(sqs): update console URL (#503)
Browse files Browse the repository at this point in the history
Fixes #502

---

_By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license_
  • Loading branch information
echeung-amzn committed Mar 22, 2024
1 parent 12cdccc commit 040845d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion lib/common/url/AwsConsoleUrlFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export class AwsConsoleUrlFactory {

getSqsQueueUrl(queueUrl: string): string | undefined {
const region = this.awsAccountRegion;
const destinationUrl = `https://${region}.console.aws.amazon.com/sqs/v2/home?region=${region}#/queues/${queueUrl}`;
const destinationUrl = `https://${region}.console.aws.amazon.com/sqs/v3/home?region=${region}#/queues/${queueUrl}`;
return this.getAwsConsoleUrl(destinationUrl);
}

Expand Down
2 changes: 1 addition & 1 deletion test/common/url/AwsConsoleUrlFactory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ test("getSqsQueueUrl", () => {
const factory = new AwsConsoleUrlFactory({ awsAccountId, awsAccountRegion });

const expected =
"https://eu-west-1.console.aws.amazon.com/sqs/v2/home?region=eu-west-1#/queues/DummyQueueUrl";
"https://eu-west-1.console.aws.amazon.com/sqs/v3/home?region=eu-west-1#/queues/DummyQueueUrl";

expect(stack.resolve(factory.getSqsQueueUrl("DummyQueueUrl"))).toEqual(
expected
Expand Down
4 changes: 2 additions & 2 deletions test/facade/__snapshots__/MonitoringAspect.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 040845d

Please sign in to comment.