- have fun with them
- projections
- filters
- resource-keys
- scripting-gcloud
- http://cloudplatform.googleblog.com/2018/03/introducing-GCPs-new-interactive-CLI.html
- https://medium.com/@Joachim8675309/getting-started-with-gcloud-sdk-part-1-114924737
- https://medium.com/@Joachim8675309/getting-started-with-gcloud-sdk-part-2-4d049a656f1a
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
module "dcos" { | |
source = "dcos-terraform/dcos/aws" | |
cluster_name="my-open-dcos-cluster" | |
ssh_public_key_file="~/.ssh/id_rsa.pub" | |
num_masters = "1" | |
num_private_agents = "2" | |
num_public_agents = "1" |
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
module "dcos" { | |
source = "dcos-terraform/dcos/aws" | |
cluster_name="my-open-dcos-cluster" | |
ssh_public_key_file="~/.ssh/id_rsa.pub" | |
num_masters = "1" | |
num_private_agents = "3" | |
num_public_agents = "1" |
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
module "dcos" { | |
source = "dcos-terraform/dcos/aws" | |
cluster_name="my-open-dcos-cluster" | |
ssh_public_key_file="~/.ssh/id_rsa.pub" | |
num_masters = "1" | |
num_private_agents = "3" | |
num_public_agents = "1" |
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
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install -y gpg | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ | |
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' | |
sudo apt-get install -y apt-transport-https | |
sudo apt-get update | |
sudo apt-get install -y code |
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
curl -skSL \ | |
-H "Authorization: token=$(dcos config show core.dcos_acs_token)" \ | |
-H "Content-Type: application/json" \ | |
"$(dcos config show core.dcos_url)/mesos/slaves" | \ | |
jq -er '[.slaves[] | select(.active==true) | {id: .id, hostname: .hostname, active: .active, reserved_resources_full: (.reserved_resources_full)}]' | \ | |
jq -er '[.[] | select(.reserved_resources_full | length > 0)]' | \ | |
tee reservations.json |
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
# Find Public IP | |
data "http" "whatismyip" { | |
url = "http://whatismyip.akamai.com/" | |
} | |
# Begin Variables | |
variable "aws_ami" { | |
description = "AMI to use" | |
default = "ami-4bf3d731" | |
} |
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
# Find Public IP | |
data "http" "whatismyip" { | |
url = "http://whatismyip.akamai.com/" | |
} | |
# Begin Variables | |
variable "aws_ami" { | |
description = "AMI to use" | |
default = "ami-4bf3d731" | |
} |
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
{ | |
"dcos-terraform/dcos/aws": { | |
"source": "git::https://github.com/dcos-terraform/terraform-aws-dcos.git?ref=release/v0.2" | |
}, | |
"dcos-terraform/infrastructure/aws": { | |
"source": "git::https://github.com/dcos-terraform/terraform-aws-infrastructure.git?ref=release/v0.2" | |
}, | |
"dcos-terraform/vpc/aws": { | |
"source": "git::https://github.com/dcos-terraform/terraform-aws-vpc.git?ref=release/v0.2" | |
}, |