diff --git a/lib/common/url/AwsConsoleUrlFactory.ts b/lib/common/url/AwsConsoleUrlFactory.ts index ace99f6e..36880212 100644 --- a/lib/common/url/AwsConsoleUrlFactory.ts +++ b/lib/common/url/AwsConsoleUrlFactory.ts @@ -73,10 +73,10 @@ export class AwsConsoleUrlFactory { const region = this.awsAccountRegion; switch (clusterType) { case ElastiCacheClusterType.MEMCACHED: - const destinationUrlMemcached = `https://${region}.console.aws.amazon.com/elasticache/home?region=${region}#memcached-nodes:id=${clusterId};nodes`; + const destinationUrlMemcached = `https://${region}.console.aws.amazon.com/elasticache/home?region=${region}#/memcached/${clusterId}`; return this.getAwsConsoleUrl(destinationUrlMemcached); case ElastiCacheClusterType.REDIS: - const destinationUrlRedis = `https://${region}.console.aws.amazon.com/elasticache/home?region=${region}#redis-shards:redis-id=${clusterId}`; + const destinationUrlRedis = `https://${region}.console.aws.amazon.com/elasticache/home?region=${region}#/redis/${clusterId}`; return this.getAwsConsoleUrl(destinationUrlRedis); default: throw new Error(`Invalid cache type: ${clusterType}`); diff --git a/test/common/url/AwsConsoleUrlFactory.test.ts b/test/common/url/AwsConsoleUrlFactory.test.ts index fa5dad90..6e91c873 100644 --- a/test/common/url/AwsConsoleUrlFactory.test.ts +++ b/test/common/url/AwsConsoleUrlFactory.test.ts @@ -277,7 +277,7 @@ test("getElastiCacheClusterUrl (memcached)", () => { const factory = new AwsConsoleUrlFactory({ awsAccountId, awsAccountRegion }); const expected = - "https://eu-west-1.console.aws.amazon.com/elasticache/home?region=eu-west-1#memcached-nodes:id=DummyDomainName;nodes"; + "https://eu-west-1.console.aws.amazon.com/elasticache/home?region=eu-west-1#/memcached/DummyDomainName"; expect( stack.resolve( @@ -303,7 +303,7 @@ test("getElastiCacheClusterUrl (redis)", () => { const factory = new AwsConsoleUrlFactory({ awsAccountId, awsAccountRegion }); const expected = - "https://eu-west-1.console.aws.amazon.com/elasticache/home?region=eu-west-1#redis-shards:redis-id=DummyDomainName"; + "https://eu-west-1.console.aws.amazon.com/elasticache/home?region=eu-west-1#/redis/DummyDomainName"; expect( stack.resolve(