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
dockutil --list | grep persistent-apps | cut -d $'\t' -f1 | while read thing; do dockutil --remove "${thing}"; done |
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
variable "org" {} | |
data "tfe_workspace_ids" "all" { | |
names = ["*"] | |
organization = var.org | |
} | |
resource "tfe_variable" "workspace_name" { | |
for_each = tfe_workspace_ids.all.*.id | |
workspace = this.key |
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
# Start w/ a data source to get a list of all the workspaces | |
# See: https://www.terraform.io/docs/providers/tfe/d/workspace_ids.html | |
data "tfe_workspace_ids" "all-workspaces" { | |
names = ["*"] | |
organization = "my-org-name" | |
} | |
# Look up the ID of the teamn you're looking to map | |
# See: https://www.terraform.io/docs/providers/tfe/d/team.html | |
data "tfe_team" "architects" { |
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
am i...hungry? | |
no, not hungry. i should | |
eat something, but i'm | |
not hungry at all. | |
--- | |
when did i eat last? |
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
variable "input" { | |
default = "a b c" | |
} | |
resource "template_file" "json" { | |
template = "{ \"somekey\": [${list}] }" | |
vars { | |
list = "${join(", ", formatlist("\\"%s\\"", split(" ", var.input)))}" | |
} | |
} |
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
provider "aws" { | |
access_key = "foo" | |
secret_key = "bar" | |
region = "us-east-1" | |
} | |
module "vpc" { | |
source = "./tf_aws_vpc" | |
name = "keyprovidertest" |
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
# See https://groups.google.com/d/msgid/terraform-tool/db2ee775-e8b8-4e6b-8b3a-35fb182a1571%40googlegroups.com | |
# Setting region so AMI always works, configure the rest via env vars | |
provider "aws" { | |
region = "us-west-2" | |
} | |
resource "aws_vpc" "from" { | |
cidr_block = "10.1.0.0/16" | |
} |
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
variable "region" { } | |
provider "aws" { | |
region = "${var.region}" | |
} | |
module "ami" { | |
source = "github.com/terraform-community-modules/tf_aws_ubuntu_ami/ebs" | |
region = "${var.region}" | |
distribution = "trusty" |
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
variable "instance_type" { | |
default = "t2.micro" | |
} | |
variable "region" { | |
default = "us-west-2" | |
} | |
variable "custom" { | |
default = "env-specific-value" |
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
resource "aws_instance" "web" { | |
ami = "ami-7f89a64f" | |
instance_type = "t1.micro" | |
ebs_block_device { | |
device_name = "/dev/sdg" | |
volume_size = 5 | |
volume_type = "gp2" | |
delete_on_termination = false | |
} | |
} |
NewerOlder