This file contains hidden or 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
// volumes.tf | |
// ... | |
resource "null_resource" "expand_disk" { | |
connection { | |
type = "ssh" | |
user = "ubuntu" | |
private_key = "${file("~/.ssh/id_rsa")}" | |
host = "${data.aws_instance.mysql.public_ip}" | |
} | |
This file contains hidden or 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
// volumes.tf | |
// ... | |
locals { | |
mount_point = "${aws_ebs_volume.mysql.tags["opsworks:mount_point"]}" | |
} |
This file contains hidden or 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
// volumes.tf | |
// ... | |
locals { | |
mount_point = "${data.aws_instance.mysql.ebs_block_device.0.device_name}" | |
} |
This file contains hidden or 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
// volumes.tf | |
// ... | |
data "aws_instance" "mysql" { | |
filter { | |
name = "block-device-mapping.volume-id" | |
values = ["${aws_ebs_volume.mysql.id}"] | |
} | |
} | |
output "instance_id" { |
This file contains hidden or 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
// volumes.tf | |
resource "aws_ebs_volume" "mysql" { | |
availability_zone = "us-east-1a" | |
size = 2000 | |
type = "gp2" | |
tags { | |
Name = "mysql" | |
Role = "db" | |
Terraform = "true" | |
FS = "xfs" |
This file contains hidden or 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
// volumes.tf | |
resource "aws_ebs_volume" "mysql" { | |
availability_zone = "us-east-1a" | |
size = 1000 | |
type = "gp2" | |
tags { | |
Name = "mysql" | |
Role = "db" | |
Terraform = "true" | |
FS = "xfs" |
This file contains hidden or 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
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: staging-node-user | |
rules: | |
- apiGroups: [""] | |
resources: ["nodes"] | |
verbs: ["get", "list", "watch"] | |
- apiGroups: [""] |
This file contains hidden or 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
package main | |
import "fmt" | |
import "errors" | |
type Node struct { | |
next *Node | |
value string | |
} |
This file contains hidden or 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 ruby | |
require 'rubygems' | |
require 'bundler' | |
require 'logger' | |
Bundler.require | |
Capybara.register_driver(:headless_chrome) do |app| |
This file contains hidden or 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
#cask_args appdir: "~/Applications", require_sha: true | |
cask 'spotify' | |
cask 'homebrew/cask-versions/firefox-developer-edition' | |
cask 'signal' | |
cask 'keybase' | |
cask 'slack' | |
cask 'telegram-desktop' |