Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: defaultStepFunctionProps.conversionOptions must be present or Lambda invoke is not added to role #893

Open
dmeehan1968 opened this issue Oct 21, 2023 · 0 comments

Comments

@dmeehan1968
Copy link

Lambda invoke permissions should be being added to any created lambda's (according to #52).

However, this doesn't happen unless conversionOptions is specified as part of defaultStepFunctionProps (not to be confused with the same property on the TypescriptStateMachineProps).

This must be fully specified, and the type only allows true for the three properties.

This is the case regardless of whether a role is supplied to the defaultStepFunctionProps or not.

new ts2asl.TypescriptStateMachine(this, "TypescriptStateMachine", {
  programName: "hello-world",
  defaultFunctionProps: {},
  defaultStepFunctionProps: {
    stateMachineType: "EXPRESS",
    role: executionRole,
    conversionOptions: {
       emitIamPolicies: true,
       emitStateLanguageFiles: true,
       autoGenerateIamPolicy: true,
   },
  },
  sourceFile: "./src/program.ts",
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant