Skip to content

Commit 1e8e664

Browse files
authored
fix: we should also retain the SecretTargetAttachement [adhoc] (#140)
1 parent d1fe59e commit 1e8e664

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/aurora.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class ApplyRemovalPolicyAspect implements IAspect {
6161
'AWS::EC2::SecurityGroupEgress',
6262
'AWS::EC2::SecurityGroupIngress',
6363
'AWS::SecretsManager::Secret',
64+
'AWS::SecretsManager::SecretTargetAttachment',
6465
];
6566

6667
const destroyedTypes = [
@@ -71,7 +72,6 @@ class ApplyRemovalPolicyAspect implements IAspect {
7172
'AWS::IAM::Policy',
7273
'AWS::SecretsManager::ResourcePolicy',
7374
'AWS::SecretsManager::RotationSchedule',
74-
'AWS::SecretsManager::SecretTargetAttachment',
7575
'AWS::SSM::Parameter',
7676
'AWS::Logs::LogGroup',
7777
];

test/aurora.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,6 @@ describe('Aurora', () => {
499499
'AWS::Lambda::Function',
500500
'AWS::IAM::Role',
501501
'AWS::IAM::Policy',
502-
'AWS::SecretsManager::SecretTargetAttachment',
503502
'AWS::SecretsManager::RotationSchedule',
504503
];
505504

0 commit comments

Comments
 (0)