-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to create auto-scaling group with custom vpc on AWS #4801
Comments
As we are creating VPC on fly we need to comment out availability zone and it works. The AZs are defined by the AZ of the subnets and Terraform can throw “diff’s don’t match” errors when both are defined Note: either one sould be defined not both. resource "aws_autoscaling_group" "web-asg" {
availability_zones = ["${split(",", var.availability_zones)}"]
name = "${var.Environment}-web_asg"
.........} please refer: https://www.terraform.io/docs/providers/aws/r/autoscaling_group.html#availability_zones |
@avengers009 is spot on here, commenting or removing |
Using |
@ketzacoatl can you please provide your configuration and the error message? If its similar to the above, commenting/removing |
@bflad sure, I am using the
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
I was trying to spin up complete aws basic infrastructure with a launch configuration and the auto-scaling group but terraform is giving error while spinning up the autoscaling group in the custom vpc.
Terraform Version
terraform -v
Terraform v0.11.4
Affected Resource(s)
terraform -v
Terraform v0.11.4
Terraform Configuration Files
Debug Output
https://gist.github.com/ethicalmohit/ee5d1af7c526421a5517ed4d77aa3db1
Expected Behavior
It should create an autoscaling group in the same subnet which is mentioned in the vpc_zone_identifier.
Actual Behavior
It has not created any ASG.
Steps to Reproduce
Create ASG with the file mentioned in this gist : https://gist.github.com/ethicalmohit/d6e351498c6c33bb8db2d8dd0726b2f6
terraform apply
Important Factoids
No
The text was updated successfully, but these errors were encountered: