Cannot connect to Elasticache Redis Cluster From App Runner #5855
-
Hello
My goal is for the AppRunner service to connect to Elasticache in it's VPC. The Redis Cluster error I get from the CloudWatch logs is:
This was all working before ECS Support for Docker was deprecated / archived. Now I'm attempting to migrate the application using Copilot and AppRunner. Please let me know what I'm doing wrong, I'm new to all of this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Turns out I had to create and configure a VPC instead of using App Runner's default creation. So a lot of trial and error and after about a week of troubleshooting I was finally able to figure it out. This is what my environment manifest.yml file looks like:
Here is what I had to adjust in the service manifest file:
This is what my addon/template.yml file looks like:
For creation of the VPC and NAT gateways, I followed this article: I may have duplicated some work and some statements could possibly be not necessary to add. But this is the stage where I'm at now and it's working (minus cognito in a different region, but that's a different issue) |
Beta Was this translation helpful? Give feedback.
Turns out I had to create and configure a VPC instead of using App Runner's default creation.
This involved creating NAT gateways with elastic ips to connect to the subnets.
Also had to initialize the environment to use the existing VPC that I just created along with the security groups.
The addon/template.yml file needed to list create a VPC Connector resource.
So a lot of trial and error and after about a week of troubleshooting I was finally able to figure it out.
This is what my environment manifest.yml file looks like: