网站如何规划,班玛县网站建设公司,电脑网站转换成手机网站,做网站维护一工资多少钱aws上负载均衡器标组端口昨天#xff0c;我使用AWS CloudFormation模板最终创建了ECS服务#xff08;Fargate类型#xff09;#xff0c;还创建了包括应用程序负载均衡器#xff0c;目标组和IAM角色的资源。 创建堆栈时#xff0c;出现以下错误#xff1a; 具有target… aws上负载均衡器标组端口 昨天我使用AWS CloudFormation模板最终创建了ECS服务Fargate类型还创建了包括应用程序负载均衡器目标组和IAM角色的资源。 创建堆栈时出现以下错误 具有targetGroupArn arnawselasticloadbalancingus-east-1599074885545targetgroup / a204516-S2S-Sandbox-TargetGroup / 9f4aa2eb4051a952的目标组没有关联的负载均衡器。 服务AmazonECS;状态代码400;错误代码InvalidParameterException;请求ID5da2a1ed-a216-4666-a6f9-8af18ef37af6 The target group with targetGroupArn arn:aws:elasticloadbalancing:us-east-1:999999995545:targetgroup/MyTargetGroup/999999eb4051a952 does not have an associated load balancer. (Service: AmazonECS; Status Code: 400; Error Code: InvalidParameterException; Request ID: 54321987-a2a2-4444-abcd-8af18ef12345) 我检查了我的模板很多次并认为它是正确的。 我在论坛上发现了一条帖子提示该错误可能是由于创建ECS服务时可能尚未创建负载均衡器。 解决方案将DependsOn属性用于ECS服务资源。 这是我的AWS CloudFormation模板的一部分使用DependsOn属性 #Create Application Load Balancer DemoApplicationLoadBalancer: Type: AWS::ElasticLoadBalancingV2::LoadBalancer Properties: Type: application Name: Demo-ALB IpAddressType: ipv4 Scheme: internet-facing # Other properties... # Create Security Groups, IAM Roles, Load Balancing Listener, ECS Cluster, ECS Task Def, etc. # Create ECS Service - with DependsOn attribute DemoSandboxService: Type: AWS::ECS::Service DependsOn: - DemoLoadBalancerListener Properties: Cluster: Ref: DemoSandboxCluster # Other properties... 翻译自: https://www.javacodegeeks.com/2020/06/aws-cloudformation-target-group-does-not-have-an-associated-load-balancer.htmlaws上负载均衡器标组端口