Skip to content

Instantly share code, notes, and snippets.

View ethicalmohit's full-sized avatar

Mohit Shukla ethicalmohit

View GitHub Profile
@ethicalmohit
ethicalmohit / terrafrom-script-auto-scaling
Created June 10, 2018 09:21
This gist has the configuration of the terraform which is responsible to create auto-scaling-group and launch configuration.
resource "aws_launch_configuration" "launch_configuration" {
name = "zox"
image_id = "${var.ami_ubuntu}"
instance_type = "${var.instance_type}"
security_groups = ["${aws_security_group.sg.id}"]
key_name = "${var.key_name}"
lifecycle {
create_before_destroy = true
}
}
@ethicalmohit
ethicalmohit / terraform-auto-scaling-bug
Created June 10, 2018 09:19
This is a gist of the output Terraform is giving while creating auto-scaling group.
Error: Error applying plan:
1 error(s) occurred:
* aws_autoscaling_group.autoscaling_group: aws_autoscaling_group.autoscaling_group: diffs didn't match during apply. This is a bug with Terraform and should be reported as a GitHub Issue.
Please include the following information in your report:
Terraform Version: 0.11.4
Resource ID: aws_autoscaling_group.autoscaling_group
IMPORTANT NOTICE:
If there's a metagem available for your cloud provider, e.g. `fog-aws`,
you should be using it instead of requiring the full fog collection to avoid
unnecessary dependencies.
'fog' should be required explicitly only if the provider you use doesn't yet
have a metagem available.
------------------------------
Successfully installed fog-2.0.0
Parsing documentation for json-2.1.0