Giter Site home page Giter Site logo

rhenning / stakpark Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 1.0 44 KB

An opinionated clone-and-go template for local cloud infrastructure development on Macs

License: Apache License 2.0

Ruby 1.51% Makefile 41.04% Go 12.00% HCL 45.44%
localstack terraform terratest kind infrastructure-as-code

stakpark's Introduction

stakpark

stakpark is an opinionated, clone-and-go environment template for local cloud infrastructure development on macs. package management is handled by homebrew, container runtime by docker, compose, and kind, and it includes other odds and ends like localstack, golang, and terraform, tfenv, terragrunt, tgswitch, and terratest.

motivation

i've grown tired of creating this structure from scratch each time i'd like an aws development sandbox.

up and running

psst... did you catch that first paragraph where i said this was an opinionated template? it installs a bunch of stuff with homebrew. i strongly suggest eyeballing the brewfile before continuing and making adjustments if you're not crazy about something there. that said...

: install dependencies
make dep

: start localstack
make up

: smoke test (from another terminal)
make check

: run legit tests (from same terminal as previous)
make test

more targets:

make tfinit
make tfvalidate
make tfplan
make tfapply
make tfdestroy

start a shell and use the AWS CLI against the local test environment:

poetry shell
awslocal sts get-caller-identity
awslocal ec2 describe-vpcs

what now?

feel free to copy test/envs/_example to a new directory and adjust as desired to create your own environment. a_test.go and Makefile contain references to _example, so be sure to update those.

have fun.

faq

Q: i have purchased a localstack pro license. how can i use it? A: make up LOCALSTACK_API_KEY="t0ps3<r37"

stakpark's People

Contributors

rhenning avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

yardbirdsax

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.