Skip to content

Instantly share code, notes, and snippets.

View Bjorn248's full-sized avatar

Bjorn Stange Bjorn248

View GitHub Profile

Keybase proof

I hereby claim:

  • I am bjorn248 on github.
  • I am bjorn248 (https://keybase.io/bjorn248) on keybase.
  • I have a public key ASAHjv_cn3QiEWMrkwc3Uqd-ICs1Shjg5Rv3szfpeBueywo

To claim this, I am signing this object:

null_resource.configure_mongo_replicaset_and_backup (chef): ########################################### [100%]
null_resource.configure_mongo_replicaset_and_backup (chef): Thank you for installing Chef!
null_resource.configure_mongo_replicaset_and_backup (chef): Creating configuration files...
null_resource.configure_mongo_replicaset_and_backup (chef): Generate the private key...
null_resource.configure_mongo_replicaset_and_backup: Still creating... (20s elapsed)
null_resource.configure_mongo_replicaset_and_backup (chef): ERROR: You authenticated successfully to https://api.chef.io/organizations/REDACTED/ as terraform_validator but you are not authorized for this action
null_resource.configure_mongo_replicaset_and_backup (chef): Response: missing delete permission
null_resource.configure_mongo_replicaset_and_backup (chef): Cleanup user key...
* Command "sudo knife node delete C2_MongoDB1_West_i-0ca2e4b05bb8faeea -y -c /etc/chef/client.rb -u terraform_validator --key /etc/chef/terraform_validator.pem" exited with non-zero exit status: 100
2016/12/12 17:29:56 [ERROR] root: eval: *terraform.EvalSequence, err: 1 error(s) occurred:
* Command "sudo knife node delete C2_MongoDB1_West_i-0ca2e4b05bb8faeea -y -c /etc/chef/client.rb -u terraform_validator --key /etc/chef/terraform_validator.pem" exited with non-zero exit status: 100
2016/12/12 17:29:56 [TRACE] [walkApply] Exiting eval tree: null_resource.c2_configure_mongo_replicaset_and_backup
2016/12/12 17:29:56 [DEBUG] vertex "meta.count-boundary (count boundary fixup)", got dep: "null_resource.c2_configure_mongo_replicaset_and_backup"
2016/12/12 17:29:56 [DEBUG] vertex "meta.count-boundary (count boundary fixup)", got dep: "var.Centos6_AMIs"
2016/12/12 17:29:56 [DEBUG] vertex "meta.count-boundary (count boundary fixup)", got dep: "var.secondary_region_alias"
2016/12/12 17:29:56 [DEBUG] vertex "meta.coun
resource "aws_instance" "C1_MongoDB1_West" {
# Custom AMI for Mongo Instances
ami = "${lookup(var.Mongo_AMIs, var.primary_region)}"
instance_type = "r3.xlarge"
subnet_id = "${aws_subnet.Dev_mongo_west.id}"
key_name = "REDACTED"
vpc_security_group_ids = ["${aws_security_group.REDACTED_Dev_PoC_SG_West_Internal.id}"]
user_data = "${file("userdata_hosts.sh")}"
ebs_optimized = true
provider "aws" {
region = "us-west-1"
shared_credentials_file = "REDACTED"
profile = "REDACTED"
}
# East Coast Region
# us-east-1 aka Northern Virginia
provider "aws" {
alias = "east"
yumdownloader $(repoquery --requires --recursive --resolve <package name>)