Hi there, I am using appSync and I can see that SS...
# help
m
Hi there, I am using appSync and I can see that SST created an IAM role for me automatically. This IAM role has a trust relationship to appsync.amazonaws.com and permissions to invoke lambda
lambda:InvokeFunction
. Is it possible to specify an existent role instead of creating one?
It is just that our pipeline role currently does not have permission to create IAM roles.
f
Hey @Marcos Sampaio, it’s a work in progress on the CDK side https://github.com/aws/aws-cdk/issues/16225
Btw, is this a blocker for your team?
^ as a side note, whenever u create a new lambda function, CDK also creates an IAM role with trust relationship to
<http://lambda.amazonaws.com|lambda.amazonaws.com>
. Do you also have to override that?
hmm… I don’t know if that’s a common practice.
Usually what ppl do in this case is specify a
--role-arn
when deploying, and CloudFormation will use this role instead of the Pipeline role.