App Runner Deployment Race Condition When Using CloudFormation - No Outbound Connectivity

0

I've noticed that App Runner instances can get into a weird state where they have no outbound connectivity (Not just DNS as mentioned in other questions, even a ping of 1.1.1.1 or a HTTP request to an AWS service such as DynamoDB fails) but still retains inbound connectivity.

This seems to happen sometimes in a specific deployment scenario when using CloudFormation, but not always.

Scenario

  • An App Runner service has been created via CloudFormation
  • The App Runner service has configured to auto-deploy from Elastic Container Registry
  • App Runner is configured with a status check which does not rely on outbound connectivity
  • Push a new container image to ECR (Or tag an existing image with a tag which will trigger the automatic deployment)
  • Immediately start a CloudFormation deployment (There don't have to be any changes to the AppRunner configuration)

Sometimes this will cause App Runner to create an instance with no outbound connectivity. I've tested this with a .NET 6 container image but I suspect this will affect all images as even pings were failing.

Work-Around

  • Disable auto-deployment of App Runner
  • Manually trigger a deployment of App Runner via the AWS API as part of the deployment pipeline, after the CloudFormation deployment

This has worked every time for me to date.

  • Thanks. Are you in a position to open a support request with AWS to follow up on this? Let me know.

yngndrw
已提问 2 年前309 查看次数
1 回答
0

I am not sure if this is the same issue but we are indeed deploying a fix for a similar problem. Please open a ticket if you are still experiencing the issue.

AWS
专家
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则