Skip to content

Instantly share code, notes, and snippets.

@belminf
belminf / bootstrap.sh
Last active November 2, 2016 12:50
EC2 user-data apache bootstrap
#!/bin/bash
yum update -y
yum install -y httpd jq
service httpd start
chkconfig httpd on
echo "<html><head><title>Test page</title></head><body><h1>From $(curl http://169.254.169.254/latest/dynamic/instance-identity/document 2> /dev/null | jq '.region' | sed 's/"//g' ): Hello world</h1></body></html>" > /var/www/html/index.html
@belminf
belminf / cloudfront_distro.yaml
Created April 26, 2017 23:20
Example of an empty S3OriginConfig
AWSTemplateFormatVersion: 2010-09-09
Resources:
Bucket:
Type: 'AWS::S3::Bucket'
Properties:
AccessControl: PublicRead
WebsiteConfiguration:
IndexDocument: index.html
ErrorDocument: error.html
Distro:
@belminf
belminf / .kitchen.yml
Last active October 27, 2018 22:59
Simple kitchen config for dokken (for reference)
---
driver:
name: dokken
privileged: true
chef_version: latest
transport:
name: dokken
verifier:
@belminf
belminf / ingress-test.yaml
Last active July 2, 2019 17:57
Test ingress
---
kind: Pod
apiVersion: v1
metadata:
name: hello-world
labels:
app: hello-world
spec:
containers:
- name: echo