Hi Guys,
I am facing this error when I try to create auto scaling group from terraform:
Error: Error retrieving Auto Scaling Groups: RequestError: send request failed
│ caused by: Post "https://autoscaling.us-east-1.amazonaws.com/": read tcp 10.2.41.94:53774->54.239.31.70:443: read: connection reset by peer. Most recent activity: {
│ ActivityId: "df25ff6d-c649-b74c-a041-78890866f04f",
│ AutoScalingGroupARN: "arn:aws:autoscaling:us-east-1:270525063973:autoScalingGroup:119920ff-ab8b-4580-abf6-f7ae456c8d4d:autoScalingGroupName/terraform-20220330152843405800000002",
│ AutoScalingGroupName: "terraform-20220330152843405800000002",
│ Cause: "At 2022-03-30T15:28:43Z a user request created an AutoScalingGroup changing the desired capacity from 0 to 1. At 2022-03-30T15:28:45Z an instance was started in response to a difference between desired and actual capacity, increasing the capacity from 0 to 1.",
│ Description: "Launching a new EC2 instance: i-0c4fb8a7077c08a5b",
│ Details: "{\"Subnet ID\":\"subnet-0f82f92092e564c9b\",\"Availability Zone\":\"us-east-1c\"}",
│ Progress: 30,
│ StartTime: 2022-03-30 15:28:47.725 +0000 UTC,
│ StatusCode: "PreInService"
│ }
│
│ with aws_autoscaling_group.example,
│ on main.tf line 33, in resource "aws_autoscaling_group" "example":
│ 33: resource "aws_autoscaling_group" "example" {
I am following code here for book Terraform: Up and Running terraform-up-and-running-code/code/terraform/02-intro-to-terraform-syntax/webserver-cluster at 3rd-edition · brikis98/terraform-up-and-running-code · GitHub
Any suggestion or help?
Thanks