@justworkflowit/cdk-constructs 0.0.221 → 0.0.222
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,6 @@ export interface JustWorkflowItConstructsProps {
|
|
|
4
4
|
organizationId: string;
|
|
5
5
|
workflowDefinitions: string[];
|
|
6
6
|
ignoreDefinitionDeployerFailures?: boolean;
|
|
7
|
-
justWorkflowItAccountId?: string;
|
|
8
7
|
}
|
|
9
8
|
export declare class JustWorkflowItConstructs extends Construct {
|
|
10
9
|
private static readonly CONSTRUCT_ID_PREFIX;
|
|
@@ -143,13 +143,13 @@ class JustWorkflowItConstructs extends constructs_1.Construct {
|
|
|
143
143
|
});
|
|
144
144
|
provider.node.addDependency(bucketDeployment);
|
|
145
145
|
resource.node.addDependency(bucketDeployment);
|
|
146
|
-
//
|
|
147
|
-
//
|
|
148
|
-
const
|
|
146
|
+
// JustWorkflowIt production account - this is the account where the workflow execution engine runs
|
|
147
|
+
// The execution role created here allows JustWorkflowIt to assume it and perform actions in the customer's account
|
|
148
|
+
const JUSTWORKFLOWIT_PRODUCTION_ACCOUNT = '588738588052';
|
|
149
149
|
const executionRole = new aws_iam_1.Role(this, 'JustWorkflowItAutomationExecutionRole', {
|
|
150
150
|
roleName: `JustWorkflowItExecutionRole`,
|
|
151
|
-
assumedBy: new aws_iam_1.AccountPrincipal(
|
|
152
|
-
description:
|
|
151
|
+
assumedBy: new aws_iam_1.AccountPrincipal(JUSTWORKFLOWIT_PRODUCTION_ACCOUNT),
|
|
152
|
+
description: 'Role assumed by JustWorkflowIt backend to perform workflow actions in this account.',
|
|
153
153
|
});
|
|
154
154
|
executionRole.addToPolicy(new aws_iam_1.PolicyStatement({
|
|
155
155
|
actions: ['lambda:InvokeFunction'],
|