aws-samples / gen-ai-cve-patching

MIT No Attribution
19 stars 8 forks source link

Getting below terraform Error. #17

Open yogi-2023 opened 2 weeks ago

yogi-2023 commented 2 weeks ago

Hi,

We have getting below error when we run Terraform file. Can you please check and help me

╷ │ Error: creating ELBv2 application Load Balancer (cve-automatic-patching-demo): operation error Elastic Load Balancing v2: CreateLoadBalancer, https response error StatusCode: 400, RequestID: b31e09db-2542-44a7-886d-88ab50d90a3e, api error ValidationError: You cannot provide subnets from multiple locales. │ │ with module.alb.aws_lb.this[0], │ on .terraform/modules/alb/main.tf line 12, in resource "aws_lb" "this": │ 12: resource "aws_lb" "this" { │ ╵ ╷ │ Error: creating EC2 NAT Gateway: operation error EC2: CreateNatGateway, https response error StatusCode: 400, RequestID: 2599f8f5-d886-4d6f-9c63-700cd4e95692, api error NotAvailableInZone: Nat Gateway is not available in this availability zone │ │ with module.vpc.aws_nat_gateway.this[0], │ on .terraform/modules/vpc/main.tf line 1078, in resource "aws_nat_gateway" "this": │ 1078: resource "aws_nat_gateway" "this" { │ ╵ ╷ │ Error: creating ECS Cluster (cve-automatic-patching-demo): operation error ECS: CreateCluster, https response error StatusCode: 400, RequestID: ff25659e-5fa3-4f0f-a1f4-005eb01ae82d, InvalidParameterException: Arguments on this idempotent request are inconsistent with arguments used in previous request(s). │ │ with module.ecs_cluster.aws_ecs_cluster.this[0], │ on .terraform/modules/ecs_cluster/modules/cluster/main.tf line 14, in resource "aws_ecs_cluster" "this": │ 14: resource "aws_ecs_cluster" "this" { │

yogi-2023 commented 8 hours ago

Hi Team,

No update

Hi,

We have getting below error when we run Terraform file. Can you please check and help me

╷ │ Error: creating ELBv2 application Load Balancer (cve-automatic-patching-demo): operation error Elastic Load Balancing v2: CreateLoadBalancer, https response error StatusCode: 400, RequestID: b31e09db-2542-44a7-886d-88ab50d90a3e, api error ValidationError: You cannot provide subnets from multiple locales. │ │ with module.alb.aws_lb.this[0], │ on .terraform/modules/alb/main.tf line 12, in resource "aws_lb" "this": │ 12: resource "aws_lb" "this" { │ ╵ ╷ │ Error: creating EC2 NAT Gateway: operation error EC2: CreateNatGateway, https response error StatusCode: 400, RequestID: 2599f8f5-d886-4d6f-9c63-700cd4e95692, api error NotAvailableInZone: Nat Gateway is not available in this availability zone │ │ with module.vpc.aws_nat_gateway.this[0], │ on .terraform/modules/vpc/main.tf line 1078, in resource "aws_nat_gateway" "this": │ 1078: resource "aws_nat_gateway" "this" { │ ╵ ╷ │ Error: creating ECS Cluster (cve-automatic-patching-demo): operation error ECS: CreateCluster, https response error StatusCode: 400, RequestID: ff25659e-5fa3-4f0f-a1f4-005eb01ae82d, InvalidParameterException: Arguments on this idempotent request are inconsistent with arguments used in previous request(s). │ │ with module.ecs_cluster.aws_ecs_cluster.this[0], │ on .terraform/modules/ecs_cluster/modules/cluster/main.tf line 14, in resource "aws_ecs_cluster" "this": │ 14: resource "aws_ecs_cluster" "this" { │