-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[ses] Add VPC Endpoint for SES #9386
Comments
Hi @followben - You are correct that the SES endpoint is not available as a static member, like many others are. However, you can still initialize the new InterfaceVpcEndpointAwsService('email-smtp'); Im going to mark this as a feature request anyway to add it to our list, but you should be able to workaround this. Let us know if this resolved your issue? Thanks! |
Thanks @iliapolo - unfortunately not. I attached an
And granted the lambda access to that security group:
Upon deployment, the vpc, security group and lambda all look to be configured as requested via the console. I know the function works and can invoke However it simply hangs/ times out when running under the above configuration. I can't see any relevant logs in Cloud Formation or associated failure metrics in SES. Do you have any further suggestions as to how I can debug and resolve? |
Perhaps the problem is that the |
@followben Could you also paste the code inside the lambda you use? And also the exact the VPC configuration you use, i'd like to try and reproduce the deployment. |
I'm having the same problem. I want to send email from a lambda in a VPC. |
Work-around using nodemailer and the SMTP endpoint. |
Any news on this topic, CDK-wise? |
This has been fixed in the latest version since I solved it
|
Why is the |
I need to setup a VPC Interface Endpoint for SES as described at https://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-set-up-vpc-endpoints.html via the CDK.
Use Case
We configure and deploy our entire infrastructure as code via the javascript CDK. While I can grant our VPC access to services such as Secrets Manager using
addInterfaceEndpoint()
andInterfaceVpcEndpointAwsService.SECRETS_MANAGER
, I can't see a way to connect SES.Indeed, while the VPC user guide lists SES as an available interface endpoint, the same option is missing in the latest CDK.
Proposed Solution
Add the ability to setup a VPC endpoint for SES.
This is a 🚀 Feature Request
The text was updated successfully, but these errors were encountered: