I have created a step function in aws. Name of my state machine is 'TestStep'. which is used to iterate a number from 1 to 1000.
I have created an IAM Role which has "AWSStepFunctionsFullAccess" policy.
I created one java lambda to access this step function. My code is given below.
final StateMachine stateMachine = stateMachine().comment("Iterator State Machine Example").startAt("ConfigureCount")
.state("ConfigureCount", taskState()
.resource("arn:aws:lambda:us-east-1:ACCOUNTID:function:TestStep")
.transition(end()))
.build();
final AWSStepFunctions client = AWSStepFunctionsClientBuilder.defaultClient();
client.createStateMachine(new CreateStateMachineRequest()
.withName("TestStep")
.withRoleArn("arn:aws:iam::ACCOUNTID:role/ROLENAME")
.withDefinition(stateMachine));
But I am getting an error like below. Please help me to get this correctly. When i am calling it from java the step function should be triggered and work...