Skip to content

Instantly share code, notes, and snippets.

@markpeek
markpeek / resourcespec.md
Last active December 2, 2019 02:03
CloudFormation Resource Spec...issues?

When I started troposphere there wasn't a resource specification formally defining the various resource and properties for CloudFormation.

The resource spec came out and it's been interesting to see it evolve. For a project like troposphere, it is sorely needed to ensure correctly reflecting the CloudFormation constrects into code (Python for troposphere). This allowed resources and properties to be auto-generated and have better accuracy.

But recently I've seen some odd usage patterns being used with it which I don't believe are correct. Below is some commentary on it.

@markpeek
markpeek / gist:4650b028cc5cfb5d7d65fb852438612c
Created February 6, 2018 06:46
Instructions for using Ubuntu OVA
Instructions for using Ubuntu OVA
1. Deploy the following Ubuntu 16.04 OVA on VMware fusion or your vCenter server and power-on VM
http://file01.eng.vmware.com/images/ubuntu-server-amd64/Ubuntu_16.04.2_server_amd64.ovf
2. SSH to the deployed VM with credentials: vmware/vmware
3. Download and execute the bash script to install docker, minikube & helm
curl -LO https://raw.githubusercontent.com/neosab/vagrantfiles/master/scripts/install_minikube_ubuntu1604.sh && chmod +x install_minikube_ubuntu1604.sh
./install_minikube_ubuntu1604.sh
@markpeek
markpeek / gist:ba167bd03a171e29b8f89dcccadf5d75
Created October 10, 2017 20:00
Sample Pipeline for troposphere
t = Template()
DynamoDBInputS3OutputHive = t.add_resource(Pipeline(
"DynamoDBInputS3OutputHive",
Activate="true",
Name="DynamoDBInputS3OutputHive",
ParameterValues=[
ParameterValue(
StringValue=Ref("TableName"),
Id="myDDBTableName",
),
@markpeek
markpeek / gist:c5b6cb71820d3d19098eaca0e2b9d8f2
Created July 22, 2017 20:18
PyYAML .egg issue with cfn_flip
% virtualenv venv
New python executable in /Users/mark/github/awslabs/eggissue/venv/bin/python2.7
Also creating executable in /Users/mark/github/awslabs/eggissue/venv/bin/python
Installing setuptools, pip, wheel...done.
% source venv/bin/activate
(venv) % git clone https://github.com/awslabs/aws-cfn-template-flip.git
Cloning into 'aws-cfn-template-flip'...
remote: Counting objects: 202, done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 202 (delta 18), reused 32 (delta 12), pack-reused 160

Keybase proof

I hereby claim:

  • I am markpeek on github.
  • I am markpeek (https://keybase.io/markpeek) on keybase.
  • I have a public key whose fingerprint is 8A12 DC54 2EBD BB37 015F B102 4EE5 24FA 96F4 534E

To claim this, I am signing this object: