For diagrams in books and other content.
- Mac OS X (run on Intel)
- Draw.io v15.4.0+
For diagrams in books and other content.
variable "enable_object_editor" { | |
default = false | |
type = bool | |
description = "enables object editor for current aws account" | |
} | |
data "aws_caller_identity" "current" {} | |
resource "aws_s3_bucket" "my_bucket" { | |
bucket = "my_bucket" |
FROM ubuntu:18.04 | |
RUN apt-get update && apt-get install -y --no-install-recommends wget unzip python3-pip python3-dev \ | |
&& cd /usr/local/bin \ | |
&& ln -s /usr/bin/python3 python \ | |
&& pip3 install --upgrade pip | |
RUN wget --no-check-certificate https://s3.amazonaws.com/aws-cli/awscli-bundle.zip \ | |
&& unzip awscli-bundle.zip \ | |
&& ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws |
#!/bin/bash - | |
HOSTNAME=$(terraform output hostname) | |
GCLOUD_PROJECT=$(terraform output project) | |
GCLOUD_ZONE=$(terraform output gcloud_zone) | |
USER=$(terraform output user) | |
CODE=$(terraform output crd_code) | |
PIN=$(terraform output crd_pin) | |
echo $SSH_PUBLIC_KEY > ${HOME}/.ssh/google_compute_engine.pub | |
chmod 0600 ${HOME}/.ssh/google_compute_engine.pub |
As a developer advocate for HashiCorp, Rosemary works to bridge the technical and cultural barriers between infrastructure engineers and application developers. She has a fascination for solving intractable problems with code, whether it be helping an infrastructure engineer learn to code or an application developer troubleshoot infrastructure failures. She also interfaces with vendors, clients, startups, and open source projects to find creative software solutions for infrastructure. When she is not drawing on whiteboards, Rosemary valiantly attempts to hack stacks of various infrastructure systems on her laptop while foraging for tasty victuals around the world.
2019/08/07 16:57:02 [WARN] Invalid log level: "1". Defaulting to level: TRACE. Valid levels are: [TRACE DEBUG INFO WARN ERROR] | |
2019/08/07 16:57:02 [INFO] Terraform version: 0.12.6 | |
2019/08/07 16:57:02 [INFO] Go runtime version: go1.12.4 | |
2019/08/07 16:57:02 [INFO] CLI args: []string{"/Users/rosemarywang/software/bin/terraform", "plan"} | |
2019/08/07 16:57:02 [DEBUG] Attempting to open CLI config file: /Users/rosemarywang/.terraformrc | |
2019/08/07 16:57:02 Loading CLI configuration from /Users/rosemarywang/.terraformrc | |
2019/08/07 16:57:02 [INFO] CLI command args: []string{"plan"} | |
2019/08/07 16:57:02 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config | |
2019/08/07 16:57:02 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory | |
2019/08/07 16:57:02 [DEBUG] New state was assigned lineage "8e57eb1c-ff5a-6685-1827-f90d923576ef" |
locals { | |
app_services = [ | |
{ | |
kind = "Linux" | |
sku = { | |
tier = "Standard" | |
size = "S1" | |
} | |
}, | |
{ |
Informal list of references, useful links, and examples referencing Terraform 0.12 related patterns and examples.
Upgrade Guide. A thorough guide on upgrading to 0.12.
Which providers are compatible? Includes a running list and updates.
resource "aws_s3_bucket" "bucket" { | |
bucket = "${var.bucket_name}" | |
acl = "private" | |
policy = "${file("policies/bucket.json")}" | |
} | |
resource "aws_s3_bucket_public_access_block" "bucket" { | |
bucket = "${aws_s3_bucket.bucket.id}" | |
block_public_acls = true |
{ | |
"Version": "2012-10-17", | |
"Id": "MyBucketPolicy", | |
"Statement": [ | |
{ | |
"Sid": "statement1", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "arn:aws:iam::AccountID:user/test" | |
}, |