-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/workflowrun-state-handling
- Loading branch information
Showing
43 changed files
with
644 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 16 additions & 2 deletions
18
lib/workload/stateless/stacks/filemanager/deploy/constructs/functions/migrate.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
import { Construct } from 'constructs'; | ||
import * as fn from './function'; | ||
import { DatabaseProps } from './function'; | ||
import { Duration, Stack } from 'aws-cdk-lib'; | ||
import { PolicyStatement } from 'aws-cdk-lib/aws-iam'; | ||
|
||
/** | ||
* Props for the migrate function. | ||
*/ | ||
export type MigrateFunctionProps = fn.FunctionPropsNoPackage & DatabaseProps; | ||
export type MigrateFunctionProps = fn.FunctionPropsConfigurable & DatabaseProps; | ||
|
||
/** | ||
* A construct for the Lambda migrate function. | ||
*/ | ||
export class MigrateFunction extends fn.Function { | ||
constructor(scope: Construct, id: string, props: MigrateFunctionProps) { | ||
super(scope, id, { package: 'filemanager-migrate-lambda', ...props }); | ||
super(scope, id, { | ||
package: 'filemanager-migrate-lambda', | ||
timeout: Duration.minutes(2), | ||
...props, | ||
}); | ||
|
||
// Need to be able to determine if the stack is in rollback state. | ||
this.addToPolicy( | ||
new PolicyStatement({ | ||
actions: ['cloudformation:DescribeStacks'], | ||
resources: [Stack.of(this).stackId], | ||
}) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
lib/workload/stateless/stacks/filemanager/filemanager-api-lambda/src/main.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.