0

I am deploying a lambda using serverless. The lambda has a step function. But while deploying, I see that a role called "ApigatewayToStepFunctionsRole" is created. How can I use a custom role instead.

I am using the step function plugin "serverless-step-functions": "^3.13.0"

Provider config for API gateway

provider: name: aws runtime: nodejs16.x apiGateway: # Optional API Gateway global config restApiId: xyz restApiRootResourceId: abc

Config for the step function

stepFunctions: stateMachines: xyz: events: - http: path: abc method: POST role: custom role arn cors: true request: template: application/json: {template is here}

sxp
  • 193
  • 1
  • 1
  • 11

0 Answers0