[Bug]: Backend Service on Apprunner is ignroing the security groups I define on the service
Description:
When using the following my custom groups are never defined on the app runner deployment:
network:
vpc:
placement: private
security_groups:
deny_default: true
groups: [ sg-021be4f595b2a7c79, sg-021a5462b70d2176d ]
I instead always get the default security groups, I've tried this on two separate deployments and the same thing occurs.
Details:
version: v1.33.2, built for darwin AWS EU Region 2 MacOS
Observed result:
My service deploys correctly with no faults, but the custom security groups are not added. I am deploying into a predefined VPC and this is working correctly.
Expected result:
My security groups to be added.
Debugging:
I tried a mixture of adding deny_default, tried different ways of defining the security groups including as strings etc, just can't get it to add the correctly.
Kind of related is that if it we're possible to select a preconfigured connector this would also remove my issue, although of course it's just another point of failure if I'm using the same one for multiple instances. Without being able to apply these custom security groups it makes my app runner instance unaccessible from other services.
Hi, @LiamDotPro!
Configuring your security groups is possible for ECS services (Backend and Load Balanced Web Services), but not for App Runner services (Request-Driven Web Services). https://aws.github.io/copilot-cli/docs/manifest/rd-web-service/
Thanks!
@huanjani Thanks for the feedback, is it possible to then turn this into a feature request? It seems entirely possible to configure specific security groups onto app runner in cloudformation so I suppose it's possible with copilot?
Possible dup of #3504
This issue is stale because it has been open 60 days with no response activity. Remove the stale label, add a comment, or this will be closed in 14 days.
Just wanted to bump that I'm still experiencing the same issue and having to continuously re-create the connector when doing deployments, luckily it's not that often we are deploying atm.
Hi @LiamDotPro ! I think this can be achieved using yaml patch. Please let me know if that helps with your case.