Skip to content

Commit 985ec5f

Browse files
author
Eugene Cheung
authored
fix(elasticache): update console URLs (#524)
Fixes #523 --- _By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license_
1 parent e443b40 commit 985ec5f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/common/url/AwsConsoleUrlFactory.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ export class AwsConsoleUrlFactory {
7373
const region = this.awsAccountRegion;
7474
switch (clusterType) {
7575
case ElastiCacheClusterType.MEMCACHED:
76-
const destinationUrlMemcached = `https://${region}.console.aws.amazon.com/elasticache/home?region=${region}#memcached-nodes:id=${clusterId};nodes`;
76+
const destinationUrlMemcached = `https://${region}.console.aws.amazon.com/elasticache/home?region=${region}#/memcached/${clusterId}`;
7777
return this.getAwsConsoleUrl(destinationUrlMemcached);
7878
case ElastiCacheClusterType.REDIS:
79-
const destinationUrlRedis = `https://${region}.console.aws.amazon.com/elasticache/home?region=${region}#redis-shards:redis-id=${clusterId}`;
79+
const destinationUrlRedis = `https://${region}.console.aws.amazon.com/elasticache/home?region=${region}#/redis/${clusterId}`;
8080
return this.getAwsConsoleUrl(destinationUrlRedis);
8181
default:
8282
throw new Error(`Invalid cache type: ${clusterType}`);

test/common/url/AwsConsoleUrlFactory.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ test("getElastiCacheClusterUrl (memcached)", () => {
277277
const factory = new AwsConsoleUrlFactory({ awsAccountId, awsAccountRegion });
278278

279279
const expected =
280-
"https://eu-west-1.console.aws.amazon.com/elasticache/home?region=eu-west-1#memcached-nodes:id=DummyDomainName;nodes";
280+
"https://eu-west-1.console.aws.amazon.com/elasticache/home?region=eu-west-1#/memcached/DummyDomainName";
281281

282282
expect(
283283
stack.resolve(
@@ -303,7 +303,7 @@ test("getElastiCacheClusterUrl (redis)", () => {
303303
const factory = new AwsConsoleUrlFactory({ awsAccountId, awsAccountRegion });
304304

305305
const expected =
306-
"https://eu-west-1.console.aws.amazon.com/elasticache/home?region=eu-west-1#redis-shards:redis-id=DummyDomainName";
306+
"https://eu-west-1.console.aws.amazon.com/elasticache/home?region=eu-west-1#/redis/DummyDomainName";
307307

308308
expect(
309309
stack.resolve(

0 commit comments

Comments
 (0)