Skip to content

Commit 6a63924

Browse files
fix(docdb): DB Instance ARN uses 'docdb' as the service component instead of 'rds' (#19555)
Fixes #19554 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) ### Adding new Unconventional Dependencies: * [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md/#adding-new-unconventional-dependencies) ### New Features * [ ] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/master/INTEGRATION_TESTS.md)? * [ ] Did you use `cdk-integ` to deploy the infrastructure and generate the snapshot (i.e. `cdk-integ` without `--dry-run`)? *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 431fa03 commit 6a63924

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/@aws-cdk/aws-docdb/lib/instance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ abstract class DatabaseInstanceBase extends cdk.Resource implements IDatabaseIns
101101
*/
102102
public get instanceArn(): string {
103103
return cdk.Stack.of(this).formatArn({
104-
service: 'docdb',
104+
service: 'rds',
105105
resource: 'db',
106106
arnFormat: ArnFormat.COLON_RESOURCE_NAME,
107107
resourceName: this.instanceIdentifier,

packages/@aws-cdk/aws-docdb/test/instance.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ describe('DatabaseInstance', () => {
117117
[
118118
'arn:',
119119
{ Ref: 'AWS::Partition' },
120-
':docdb:us-test-1:12345:db:',
120+
':rds:us-test-1:12345:db:',
121121
{ Ref: 'InstanceC1063A87' },
122122
],
123123
],
@@ -160,7 +160,7 @@ describe('DatabaseInstance', () => {
160160
[
161161
'arn:',
162162
{ Ref: 'AWS::Partition' },
163-
`:docdb:us-test-1:12345:db:${instanceIdentifier}`,
163+
`:rds:us-test-1:12345:db:${instanceIdentifier}`,
164164
],
165165
],
166166
},

0 commit comments

Comments
 (0)