Skip to content

Instantly share code, notes, and snippets.

@smebberson
Created March 20, 2017 09:25
Show Gist options
  • Save smebberson/5ef855e91c9185f0e22f94323fa9c6b8 to your computer and use it in GitHub Desktop.
Save smebberson/5ef855e91c9185f0e22f94323fa9c6b8 to your computer and use it in GitHub Desktop.
Koding stack
# Here is your stack preview
# You can make advanced changes like modifying your VM,
# installing packages, and running shell commands.
provider:
digitalocean:
access_token: '${var.digitalocean_access_token}'
resource:
digitalocean_droplet:
# this is the name of your VM
docker-alpine-development:
# and this is its identifier (required)
name: 'koding-${var.koding_group_slug}-${var.koding_stack_id}-${count.index+1}'
# select your instance_type here: eg. 512mb
size: '4gb'
# select your instance zone which must be in provided region: eg. nyc2
region: 'sgp1'
# base image for your droplet
image: 'ubuntu-16-04-x64'
# on user_data section we will write bash and configure our VM
user_data: |-
# let's create a file on your root folder:
echo "hello world!" >> /helloworld.txt
# please note: all commands under user_data will be run as root.
# now add your credentials and save this stack.
# once vm finishes building, you can see this file by typing
# ls /
#
# for more information please use the search box above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment