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
#!/bin/bash | |
# Tester script to create an EC2 instance and resize the filesystem | |
function resizeit { | |
echo "--------------------- RESIZING ---------------------" | |
echo | |
echo -e "\tPowering down the instance - $awsinstanceid" | |
ec2-stop-instances $awsinstanceid > /dev/null 2>&1 | |
aws ec2 wait instance-stopped --instance-id $awsinstanceid |
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
security find-generic-password -D "AirPort network password" -a MySSID -g |
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
# kubernetes | |
# | |
# | |
# author: kjenney | |
# Deploys an EKS cluster with required role and security group | |
AWSTemplateFormatVersion: 2010-09-09 | |
Description: Deploys an EKS cluster with required role and security group | |
Parameters: |
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
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: ingress-nginx | |
namespace: ingress-nginx | |
rules: | |
- apiGroups: | |
- "" | |
resources: | |
- services |
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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: coffee | |
namespace: ingress-nginx | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: coffee |
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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: coffee | |
namespace: ingress-nginx | |
spec: | |
tls: | |
- hosts: | |
- cafe.example.com | |
secretName: cafe-secret |
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
var nock = require('nock') | |
var http = require('http'); | |
var request = require('request-promise'); | |
nock('http://greetings_api:3000') | |
.post('/getGreeting') | |
.matchHeader('content-type', 'application/json') | |
.matchHeader('language', 'es') | |
.matchHeader('host', 'greetings_api:3000') | |
.matchHeader('content-length', 0) |
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
import os | |
import io | |
import json | |
import boto3 | |
from boto3.exceptions import ResourceNotExistsError | |
from botocore.exceptions import ClientError | |
import pprint | |
import logging | |
import tempfile | |
from wand.image import Image |
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
import argparse | |
from botocore.exceptions import ClientError | |
import boto3 | |
from cryptography.fernet import Fernet | |
import json | |
import logging | |
from pprint import pprint | |
import uuid | |
''' |
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
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: | |
+ create | |
Terraform will perform the following actions: | |
# aws_s3_bucket.b will be created | |
+ resource "aws_s3_bucket" "b" { | |
+ acceleration_status = (known after apply) | |
+ acl = (known after apply) | |
+ arn = (known after apply) |
OlderNewer