Skip to content

Commit

Permalink
feat: run npx projen upgrade and fix normalize_snapshot.
Browse files Browse the repository at this point in the history
With these library changes, more S3Key's need to be normalized.
Not a surprise.
  • Loading branch information
michanto committed Dec 5, 2024
1 parent 93571ea commit 26179e2
Show file tree
Hide file tree
Showing 11 changed files with 1,275 additions and 1,193 deletions.
7 changes: 4 additions & 3 deletions .eslintrc.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .gitattributes

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions .github/workflows/build.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions .github/workflows/pull-request-lint.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions .github/workflows/upgrade.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions .mergify.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 15 additions & 12 deletions package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 25 additions & 6 deletions src/constructs/normalize_snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,32 @@ export class NormalizeCodeS3Key extends Transform {
super(scope, id);
}

apply(template: CfJsonType): CfJsonType {

if (template.Resources.CDKORCHCUSTOMRESOURCEResourcesCDKORCHCUSTOMRESOURCEOnEventB60C9E76) {
template.Resources.CDKORCHCUSTOMRESOURCEResourcesCDKORCHCUSTOMRESOURCEOnEventB60C9E76
.Properties.Code.S3Key =
'3aa61e21c6891872655937328a6920a8bb2146166790237d55e789931f75b60c.zip';
protected setS3KeyOfResource(template: CfJsonType, logicalId: string, s3Key: string) {
if (template.Resources[logicalId]) {
template.Resources[logicalId]
.Properties.Code.S3Key = s3Key;
}
}

apply(template: CfJsonType): CfJsonType {
this.setS3KeyOfResource(template,
'AWSCDKTriggerCustomResourceProviderCustomResourceProviderHandler97BECD91',
'fe27a81f1e8702187a8717117fe7516f45948616ac25cefe80cc7e202365594b.zip');
this.setS3KeyOfResource(template,
'CDKORCHCUSTOMRESOURCEResourcesCDKORCHCUSTOMRESOURCEOnEventB60C9E76',
'3aa61e21c6891872655937328a6920a8bb2146166790237d55e789931f75b60c.zip');
this.setS3KeyOfResource(template,
'CDKORCHCUSTOMRESOURCEResourcesCDKORCHCUSTOMRESOURCEProviderframeworkonEvent4AE15604',
'4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e.zip');
this.setS3KeyOfResource(template,
'StepFunctionTaskStepResourcesStepFunctionTaskStepProviderframeworkonEvent9D2C3EB6',
'4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e.zip');
this.setS3KeyOfResource(template,
'StepFunctionTaskStepResourcesStepFunctionTaskStepProviderframeworkonTimeoutB0C276CE',
'4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e.zip');
this.setS3KeyOfResource(template,
'StepFunctionTaskStepResourcesStepFunctionTaskStepProviderframeworkisComplete48653344',
'4dc48ffba382f93077a1e6824599bbd4ceb6f91eb3d9442eca3b85bdb1a20b1e.zip');
return template;
}
}
Expand Down
Loading

0 comments on commit 26179e2

Please sign in to comment.