Invoking AWS Step function from Lambda in python -
so trying invoke simple step function wrote using lambda in python. using boto3 purpose
client = boto3.client('stepfunctions') response = client.start_execution( statemachinearn='aws:states:.......', name='dev-hassan-pipeline-sf', input= json.dumps(returnval) )
and have created iam role has "awsstepfunctionsfullaccess" policy
{ "version": "2012-10-17", "statement": [ { "effect": "allow", "action": "states:*", "resource": "*" } ] }
i assign role lambda, when run lambda following error
an error occurred (accessdeniedexception) when calling startexecution operation: user: arn:aws:sts::xxxxxxxx:assumed-role/dev-hassan-role1/dev-hassan-pipeline-lambda not authorized access resource: clienterror
dev-hassan-pipeline-lambda lambda's name , dev-hassan-role1 role name
can 1 me out here, doing wrong, why cant invoke step function lambda have given permissions needs
you can fix permissions in aws's iam. create role required permissions, , while creating lambda function, can refer above created iam role when prompted.
hope solves permissions issue :)
cheers!
Comments
Post a Comment