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
# Your main task is to create a Terraform module which creates an SQS queue in AWS. | |
# If a user asks you to do so, carefully follow the instructions below: | |
# 1. Clone the repository: https://github.com/terraform-aws-modules/terraform-aws-sqs | |
# 2. Cd into the cloned repository | |
# 3. Read the variables.tf file to understand the required variables | |
# 4. Ask the user to provide the required variables, at least the mandatory ones | |
# 5. After the user provides the variables, create a terraform.tfvars.json file with the variables (use jq to create the file) | |
# 6. Run terraform init |
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
#cloud-config | |
ssh_authorized_keys: | |
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCmefn6vueGaqHtBkurEOL0W6eQ+I7VcB9sVLNdj+cmOZoz/sgn1Ccw/cd1RsiK3w+8LK/Mb9FQYF16kZciHt3nPkB9fuMTBjRdVJGEebPt/roKjmCoOYw005vliLg84L7W2mwNwHUxpaDkeQBxigRLnW/6lhGVwkeDYx0rxceoMeaFeZKTJUExDm9pyFGpLe97nupHy0DfFTExtaCbNsxsTCvP9iUy1ierqGj+J9m8hMXqhlF1DW4nWfPeV8MkLb9alWPtO4uddWetfR3Gd8rd6tN+cxCVwZgzkxEAFiQ5yfAbxAkmxw24p4Ze1lhY29iV23vrWjW31Q+XmSAM2tH5 rancher |
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
#!/usr/bin/python | |
import json | |
import os | |
import shutil | |
import subprocess | |
import re | |
import argparse | |
def get_volumes(vol_dir): |
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
sudo apt-get update | |
sudo apt-get install -y build-essential openjdk-7-jdk python-dev libcurl4-nss-dev libsasl2-dev |
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
#!ipxe | |
set coreos-version dev-channel | |
set base-url http://storage.core-os.net/coreos/amd64-generic/${coreos-version} | |
kernel ${base-url}/coreos_production_pxe.vmlinuz root=squashfs: state=tmpfs: sshkey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAYQC2PxAKTLdczK9+RNsGGPsz0eC2pBlydBEcrbI7LSfiN7Bo5hQQVjki+Xpnp8EEYKpzu6eakL8MJj3E28wT/vNklT1KyMZrXnVhtsmOtBKKG/++odpaavdW2/AU0l7RZiE= coreos pxe demo" | |
initrd ${base-url}/coreos_production_pxe_image.cpio.gz | |
boot |