View config.tf
/**
* Defaults and other config items for the K8S Installer
*
*/
terraform {
backend "s3" {}
required_version = ">= 0.10.7"
}
View console-logs.sh
$ kubectl --namespace=tectonic-system logs tectonic-console-2972301597-014c7 -p
2017/10/27 19:22:39 http: Provider config sync failed, retrying in 1s: invalid character '<' looking for beginning of value
2017/10/27 19:22:40 http: Provider config sync still failing, retrying in 2s: invalid character '<' looking for beginning of value
2017/10/27 19:22:42 http: Provider config sync still failing, retrying in 4s: invalid character '<' looking for beginning of value
2017/10/27 19:22:46 http: Provider config sync still failing, retrying in 8s: invalid character '<' looking for beginning of value
2017/10/27 19:22:54 http: Provider config sync still failing, retrying in 16s: invalid character '<' looking for beginning of value
2017/10/27 19:22:59 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: dial tcp 10.3.166.161:5557: i/o timeout"; Reconnecting to {tectonic-identity-api.tectonic-system.svc.cluster.local:5557 <nil>}
2017/10/27 19:23:11 http: Provider config sync
View install.sh
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
sudo true
# Install kernel extra's to enable docker aufs support
# sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
# sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9
# sudo sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list"
View tf-debug
tom@toms-E6410:~/Projects/aws-account-tools/acs/src/user-role/test$ terraform get -update=true && terraform plan
2017/02/21 06:38:00 [INFO] Terraform version: 0.8.7 c1df88ac4633b61b83802bbb10c343c20d3035b5
2017/02/21 06:38:00 [INFO] CLI args: []string{"/home/tom/bin/terraform/terraform", "get", "-update=true"}
2017/02/21 06:38:00 [DEBUG] Detected home directory from env var: /home/tom
2017/02/21 06:38:00 [DEBUG] Detected home directory from env var: /home/tom
2017/02/21 06:38:00 [DEBUG] Attempting to open CLI config file: /home/tom/.terraformrc
2017/02/21 06:38:00 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/02/21 06:38:00 [DEBUG] Detected home directory from env var: /home/tom
Get: file:///home/tom/Projects/aws-account-tools/acs/src/user-role (update)
2017/02/21 06:38:00 [DEBUG] New state was assigned lineage "44388b95-fc9b-4fde-9c42-14d7170a82a0"
View allow-user-iam.json
{
"Version": "2012-10-17",
"Statement":[
{
"Sid": "AllowAllUsersToListAccounts",
"Effect": "Allow",
"Action":[
"iam:ListAccountAliases",
"iam:ListUsers",
"iam:GetAccountSummary"
View yarn-v-npm-diff.txt
little project i am working on:
takes 28 sec for npm install
yarn 15 sec, but after del the modes and running yarn again it too 3 sec
yarn node_modules is 33.6 mib, 3815 files, 402 sub-folders
npm node_modules is 33.4 mib, 3752 files, 382 sub-folders
$ rsync -n -ai --delete yarn_node_modules/ npm_node_modules/
.d..t...... ./
>f+++++++++ .yarn-integrity
View example-aws-assume-role-wrapper.sh
#! /usr/bin/env bash
# Wrapper scirpt that assumes aws role and then runs your script that needs the creds.
# Im not remembering where I got it, but it was at least inspired by another if not verbarium.
account_id=$1
role=$2
CMD="$@"
ACCOUNT_ID=11111111111
View install_digicert_on_aws.sh
#!/bin/bash
# unofficial bash strict mode
set -euo pipefail
IFS=$'\n\t'
# Run script from dir with both certificate files and the private key
# certificate name on AWS