@@ -15,6 +15,7 @@ import path from 'path';
1515import { AcceleratorConfig , ImportCertificateConfig , ImportCertificateConfigType } from './asea-config' ;
1616import { loadAseaConfig } from './asea-config/load' ;
1717import { DynamoDB } from './common/aws/dynamodb' ;
18+ import { ConfigService } from './common/aws/config-service' ;
1819import { S3 } from './common/aws/s3' ;
1920import { Account , getAccountId } from './common/outputs/accounts' ;
2021import { StackOutput , findValuesFromOutputs , loadOutputs } from './common/outputs/load-outputs' ;
@@ -30,6 +31,7 @@ export class PostMigration {
3031 private readonly aseaPrefix : string ;
3132 private readonly s3 : S3 ;
3233 private readonly dynamoDb : DynamoDB ;
34+ private readonly configService : ConfigService ;
3335 private outputs : StackOutput [ ] = [ ] ;
3436 private accounts : Account [ ] = [ ] ;
3537 private centralBucket : string | undefined ;
@@ -48,6 +50,7 @@ export class PostMigration {
4850 this . mappingRepositoryName = config . mappingRepositoryName ;
4951 this . s3 = new S3 ( undefined , this . region ) ;
5052 this . dynamoDb = new DynamoDB ( undefined , this . region ) ;
53+ this . configService = new ConfigService ( undefined , this . region ) ;
5154 this . args = args ;
5255 this . outputsDirectory = './outputs' ;
5356 this . writeConfig = {
@@ -375,6 +378,7 @@ export class PostMigration {
375378 phase : '3' ,
376379 resourceType : 'AWS::Config::RemediationConfiguration' ,
377380 } ) ;
381+ await this . configService . deleteConfigAggregator ( this . aseaPrefix ) ;
378382 }
379383
380384 private async removeLogging ( mappingConfig : { mappings : ASEAResourceMapping ; mappingBucket : string ; s3Client : S3 } ) {
0 commit comments