@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
- // Default to production account (588738588052) for customer deployments
147
- // Can be overridden for integration tests or other scenarios
148
- const justWorkflowItAccountId = props.justWorkflowItAccountId || '588738588052';
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(justWorkflowItAccountId),
152
- description: `Role assumed by JustWorkflowIt backend (account ${justWorkflowItAccountId}) to perform actions inside this account.`,
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'],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justworkflowit/cdk-constructs",
3
3
  "description": "",
4
- "version": "0.0.221",
4
+ "version": "0.0.222",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "publishConfig": {