Skip to content

Instantly share code, notes, and snippets.

Mohit Kumar ethicalmohit

Block or report user

Report or block ethicalmohit

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ethicalmohit
ethicalmohit / terrafrom-script-auto-scaling
Created Jun 10, 2018
This gist has the configuration of the terraform which is responsible to create auto-scaling-group and launch configuration.
View terrafrom-script-auto-scaling
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 Jun 10, 2018
This is a gist of the output Terraform is giving while creating auto-scaling group.
View terraform-auto-scaling-bug
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
View gist:a9cb747e1266155db837af4050f9978c
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
You can’t perform that action at this time.