This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LATEST_RELEASE=$(curl https://api.github.com/repos/hashicorp/terraform/releases/latest | jq --raw-output '.tag_name' | cut -c 2-) | |
if [[ ! -e ${LATEST_RELEASE} ]]; then | |
echo "Installing Terraform ${LATEST_RELEASE}..." | |
rm terraform-* | |
rm terraform | |
wget https://releases.hashicorp.com/terraform/${LATEST_RELEASE}/terraform_${LATEST_RELEASE}_linux_amd64.zip | |
unzip terraform_${LATEST_RELEASE}_linux_amd64.zip | |
rm terraform_${LATEST_RELEASE}_linux_amd64.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go test $(go list ./... | grep -v /vendor/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Convert ssh-agent output to fish shell | |
# | |
eval "$(ssh-agent)" >/dev/null | |
echo "set SSH_AUTH_SOCK \"$SSH_AUTH_SOCK\"; export SSH_AUTH_SOCK" | |
echo "set SSH_AGENT_PID \"$SSH_AGENT_PID\"; export SSH_AGENT_PID" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# If there's a new Terraform releases available, delete the current Terraform install and download the new one. | |
# Must be run from within the directory where terraform binaries should reside | |
# | |
LATEST_RELEASE=$(curl https://api.github.com/repos/hashicorp/terraform/releases/latest | jq --raw-output '.tag_name' | cut -c 2-) | |
if [[ ! -e ${LATEST_RELEASE} ]]; then | |
echo "Installing Terraform ${LATEST_RELEASE}..." | |
rm terraform-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# This is an adaptation of code I wrote to download a private binary from GitHub. Such...pain. | |
# Why can't GitHub just offer a standardized URL you can download a release binary from and attach | |
# your Github Personal Access Token as a header? | |
# | |
# Since this code is an adaptation it hasn't been directly tested, but the code it was adapted from works | |
# and hopefully you can get the missing piece you're after by looking here. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016/09/18 12:14:29 [INFO] Terraform version: 0.7.3 0dd7c657d6d60d2e7392b66ae6f74fb84582cab9 | |
2016/09/18 12:14:29 [INFO] CLI args: []string{"/opt/lib/terraform/terraform", "apply"} | |
2016/09/18 12:14:29 [DEBUG] Detected home directory from env var: /Users/josh | |
2016/09/18 12:14:29 [DEBUG] Detected home directory from env var: /Users/josh | |
2016/09/18 12:14:29 [DEBUG] Attempting to open CLI config file: /Users/josh/.terraformrc | |
2016/09/18 12:14:29 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2016/09/18 12:14:29 [DEBUG] Detected home directory from env var: /Users/josh | |
2016/09/18 12:14:30 [WARN] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id | |
2016/09/18 12:14:30 [DEBUG] DestroyEdgeInclude: Checking: data.template_file.s3_bucket_policy | |
2016/09/18 12:14:30 [DEBUG] DestroyEdgeInclude: Checking: aws_s3_bucket.webform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016/09/19 14:19:03 [INFO] Terraform version: 0.7.3 0dd7c657d6d60d2e7392b66ae6f74fb84582cab9 | |
2016/09/19 14:19:03 [INFO] CLI args: []string{"/opt/lib/terraform/terraform", "apply"} | |
2016/09/19 14:19:03 [DEBUG] Detected home directory from env var: /Users/josh | |
2016/09/19 14:19:03 [DEBUG] Detected home directory from env var: /Users/josh | |
2016/09/19 14:19:03 [DEBUG] Attempting to open CLI config file: /Users/josh/.terraformrc | |
2016/09/19 14:19:03 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2016/09/19 14:19:03 [DEBUG] Detected home directory from env var: /Users/josh | |
2016/09/19 14:19:03 [DEBUG] Checking resource noop: aws_iam_group.admin | |
2016/09/19 14:19:03 [DEBUG] No diff, not a noop | |
2016/09/19 14:19:03 [DEBUG] Checking variable noop: var.aws_region |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016/09/19 14:19:03 [INFO] Terraform version: 0.7.3 0dd7c657d6d60d2e7392b66ae6f74fb84582cab9 | |
2016/09/19 14:19:03 [INFO] CLI args: []string{"/opt/lib/terraform/terraform", "apply"} | |
2016/09/19 14:19:03 [DEBUG] Detected home directory from env var: /Users/josh | |
2016/09/19 14:19:03 [DEBUG] Detected home directory from env var: /Users/josh | |
2016/09/19 14:19:03 [DEBUG] Attempting to open CLI config file: /Users/josh/.terraformrc | |
2016/09/19 14:19:03 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2016/09/19 14:19:03 [DEBUG] Detected home directory from env var: /Users/josh | |
2016/09/19 14:19:03 [TRACE] Preserving existing state lineage "74da3ceb-07b6-42c7-bc7a-cd2f6919d606" | |
2016/09/19 14:19:03 [TRACE] Preserving existing state lineage "74da3ceb-07b6-42c7-bc7a-cd2f6919d606" | |
2016/09/19 14:19:03 [TRACE] Graph after step *terraform.ConfigTransformer: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016/09/28 15:12:25 [INFO] Terraform version: 0.7.4 | |
2016/09/28 15:12:25 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.7.4/bin/terraform", "apply"} | |
2016/09/28 15:12:25 [DEBUG] Detected home directory from env var: /Users/josh | |
2016/09/28 15:12:25 [DEBUG] Detected home directory from env var: /Users/josh | |
2016/09/28 15:12:25 [DEBUG] Attempting to open CLI config file: /Users/josh/.terraformrc | |
2016/09/28 15:12:25 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2016/09/28 15:12:25 [DEBUG] Detected home directory from env var: /Users/josh | |
2016/09/28 15:12:25 [DEBUG] Checking resource noop: aws_s3_bucket.cloudtrail | |
2016/09/28 15:12:25 [DEBUG] No diff, not a noop | |
2016/09/28 15:12:25 [DEBUG] Starting graph walk: walkInput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SOLR MODULES EXAMPLE | |
- git repo: infrastructure-live | |
- dept1 | |
- prod-account | |
- .terragrunt | |
- global | |
- iam-groups | |
- cloudtrail | |
- us-west-2 | |
- prod |