I am trying to communicate/deply aws lambda via pulumi by following node code on url
https://pulumi.io/quickstart/aws/tutorial-rest-api.html
and additionally I login to aws from cmd, also my user have full rights for lambda. But it is giving below error:
aws
lambdaFunction (hello66382ec5):
error: Plan apply failed: Error creating Lambda function: AccessDeniedException: Cross-account pass role is not allowed.
status code: 403, request id: 882ffd22-38ab-11e9-b66c-07979886e804
aws
iamRolePolicyAttachment (hello4c238266):
error: Plan apply failed: Error attaching policy arn
awsiam:
awspolicy/AmazonS3FullAccess to IAM Role hello4c238266-531ff17: NoSuchEntity: The role with name hello4c238266-531ff17 cannot be found.
status code: 404, request id: 8845a738-38ab-11e9-ae34-1b91e3cf7465
aws
iamRolePolicyAttachment (hello66382ec5-32be53a2):
error: Plan apply failed: Error attaching policy arn
awsiam:
awspolicy/AWSLambdaFullAccess to IAM Role hello66382ec5-b302f63: NoSuchEntity: The role with name hello66382ec5-b302f63 cannot be found.
status code: 404, request id: 881262ee-38ab-11e9-b9bc-f57a45e4467f
kindly help