Replies: 1 comment
-
A colleague of mine pointed out that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A colleague of mine pointed out that |
Beta Was this translation helpful? Give feedback.
-
Hello all. I get this error when I first deploy my function and attempt to POST to it with curl (it's a private API so the resource policy is required):
This puzzled me for quite some time and then I figured it had to be the resource policy I was trying to set in
serverless.yml
:This policy looks right in the console. But I basically have to edit this resource policy using the "VPC" template and substitute all the
{{vars}}
with wildcards and the VPC ID, save that, and then click "Deploy API" for this function to then come alive and start returning data instead of the above error.Any ideas why this does not just simply work on initial deploy? NOTE: I do have some terrafrom setting up some base infra and I'm referencing some SSM parameters elsewhere and above on line 37 above as well. I can provide more info if needed.
Here's my
serverless
version:Thank you for your help in advance.
Beta Was this translation helpful? Give feedback.
All reactions