AWS EB: Unresolved resource dependencies

前端 未结 1 1926
慢半拍i
慢半拍i 2021-01-25 02:03

My Django app is deployed and working thanks to this fantastic article: https://medium.com/@justaboutcloud/how-to-deploy-a-django3-application-on-elastic-beanstalk-python3-7-and

相关标签:
1条回答
  • 2021-01-25 02:36

    To me, none of your theory seems to be correct for the error you're receiving due to a couple of reasons.

    First of all, let's read the error carefully.

    Service:AmazonCloudFormation, Message:Template format error: Unresolved resource dependencies [AWSEBV2LoadBalancer] in the Resources block of the template

    The CFN stack backing the EB environment complaining about the unresolved dependency "AWSEBV2LoadBalancer". This means that the stack being created doesn't know what this logical id "AWSEBV2LoadBalancer" is for.

    This can only happen if your beanstalk application is either:

    A single instance application (no LB)

    or

    Using ELB (classic V1 LB) whose logical id in EB CFN stack is "AWSEBLoadBalancer" and not "AWSEBV2LoadBalancer".

    The later "AWSEBV2LoadBalancer" is being used as logical id for application and network LBs.

    From the medium article link you shared, I see that the author created his environment with application load balancer. Did you miss this?

    eb create django3 --elb-type application --region eu-west-1 
    

    Also the code snippet you shared is a valid YAML.

    0 讨论(0)
提交回复
热议问题