Skip to content

Commit 775f39c

Browse files
authored
feat(convert-config): adding lza vpcflowlog log group pattern to dynamic-parition (#1250)
1 parent 23192ef commit 775f39c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

reference-artifacts/Custom-Scripts/lza-upgrade/src/convert-config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3777,6 +3777,14 @@ export class ConvertAseaConfig {
37773777
s3Prefix: 'ssm',
37783778
});
37793779

3780+
//Add partition for LZA naming of vpc flow logs if there was an entry for vpcflowlogs in ASEA config
3781+
if(partitions?.filter((partition) => partition.s3Prefix === 'vpcflowlogs')) {
3782+
lzaPartitions?.push({
3783+
logGroupPattern: `*VpcFlowLogs*`,
3784+
s3Prefix: 'vpcflowlogs',
3785+
});
3786+
}
3787+
37803788
if (lzaPartitions) {
37813789
await this.writeToSources.writeFiles([
37823790
{

0 commit comments

Comments
 (0)