-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: dispatch failure #50
Comments
Here is how my lambda looks like
And in my Dockerfile im using v2
Can you try using this type of config? Also verify the ssm param is in the correct region. |
Update, I got it working! I'm not sure why it was temporarily working in between, but the fix was to create a VPC Endpoint for SSM in AWS. I had not done so before. I troubleshot by installing the
This lead me down the path of creating a VPC endpoint pointed to SSM
I did that, then I made sure my vpc security group was attached so that traffic from the lambda would be allowed. What I failed to do was to also attach it to my subnets. After attaching it to my subnets and waiting a minute, I was able to do |
Interesting, did you deploy lambda to a vpc with no nat gateway or something? Networking is fun. |
Indeed, I do not have a NAT Gateway, and I knew I was missing something 😆 I saw that I had an Internet Gateway and thought "oh, that's the thing I needed already." Different gateway 🤦 |
Hey all,
I am using this via a rails app I am deploying with Lamby. I had it working with the following in my
template.yaml
I have a policy attached to my lambda role:
This is the error I get after deploying my app:
I get one for each Crypteia env var. I was getting these, but then I modified my policy to use
arn:aws:ssm:*
instead ofarn:aws:ssm:us-east-1
and that seemed to work. My app was working, I could access it via my domain and interact with the database an all! Then I tried to add a couple more secrets in Parameter Store and in my template.yaml, and it broke again!I reverted the changes to my template.yaml, but am once again getting
dispatch failure
, even though I reverted to the previously working state. I tried settingCRYPTEIA_DEBUG: true
as an env var as well, but it didn't seem to give me any additional information.I feel like I'm a crazy person 😅 but I'm really hoping that I am just missing something obvious.
Edit:
I should mention, I am using the default VPC security group for my lambda, and all of the default VPC subnets.
The text was updated successfully, but these errors were encountered: