-
Hey all, I am attempting to create a Serverless config that creates a role as an additional resource, and then uses that role name in the resource policy for the API Gateway. I've run into a few issues and am not sure if this is not possible or if I just don't know the right syntax for adapting this config to Serverless. Here is an except from my config:
I originally tried to use the return value from Is there a way I can utilize |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I think I may have found a solution after posting. I tried using a direct
|
Beta Was this translation helpful? Give feedback.
I think I may have found a solution after posting. I tried using a direct
Ref
forMyCustomRole
and it appears to return the name that I'm looking for, and now creates a dependency in Cloudformation since that role must return it's ref first: