diff --git a/packages/@aws-cdk/aws-docdb/lib/instance.ts b/packages/@aws-cdk/aws-docdb/lib/instance.ts index 1a791b99a0bf5..9611235077389 100644 --- a/packages/@aws-cdk/aws-docdb/lib/instance.ts +++ b/packages/@aws-cdk/aws-docdb/lib/instance.ts @@ -101,7 +101,7 @@ abstract class DatabaseInstanceBase extends cdk.Resource implements IDatabaseIns */ public get instanceArn(): string { return cdk.Stack.of(this).formatArn({ - service: 'docdb', + service: 'rds', resource: 'db', arnFormat: ArnFormat.COLON_RESOURCE_NAME, resourceName: this.instanceIdentifier, diff --git a/packages/@aws-cdk/aws-docdb/test/instance.test.ts b/packages/@aws-cdk/aws-docdb/test/instance.test.ts index d7e90af3e3e90..a83525110f8f8 100644 --- a/packages/@aws-cdk/aws-docdb/test/instance.test.ts +++ b/packages/@aws-cdk/aws-docdb/test/instance.test.ts @@ -117,7 +117,7 @@ describe('DatabaseInstance', () => { [ 'arn:', { Ref: 'AWS::Partition' }, - ':docdb:us-test-1:12345:db:', + ':rds:us-test-1:12345:db:', { Ref: 'InstanceC1063A87' }, ], ], @@ -160,7 +160,7 @@ describe('DatabaseInstance', () => { [ 'arn:', { Ref: 'AWS::Partition' }, - `:docdb:us-test-1:12345:db:${instanceIdentifier}`, + `:rds:us-test-1:12345:db:${instanceIdentifier}`, ], ], },