GithubHelp home page GithubHelp logo

pythontime / todo-for-terraform_1_6_23 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spkane/todo-for-terraform

0.0 0.0 0.0 8.97 MB

Todo API server w/ compatible terraform provider

License: Apache License 2.0

Shell 23.30% Go 24.45% HCL 49.21% Dockerfile 3.04%

todo-for-terraform_1_6_23's Introduction

Todo for Terraform

  • Requires (recent versions, but approximate):
    • terraform 0.13.X+
    • go 1.15.X+ (compiling)
    • docker 20.10.X+ (build & test scripts)

Todo Server

Quick Start

docker run --name todo-list -p 8080:80 spkane/todo-list-server:latest

Build

./bin/build.sh

Usage

curl -i http://127.0.0.1:8080/
curl -i http://127.0.0.1:8080/ -d "{\"description\":\"message $RANDOM\",\"completed\":false}" -H 'Content-Type: application/spkane.todo-list.v1+json'
curl -i http://127.0.0.1:8080/ -d "{\"description\":\"message $RANDOM\",\"completed\":false}" -H 'Content-Type: application/spkane.todo-list.v1+json'
curl -i http://127.0.0.1:8080/ -d "{\"description\":\"message $RANDOM\",\"completed\":false}" -H 'Content-Type: application/spkane.todo-list.v1+json'
curl -i http://127.0.0.1:8080/3 -X PUT -H 'Content-Type: application/spkane.todo-list.v1+json' -d '{"description":"go shopping",\"completed\":true}'
curl -i http://127.0.0.1:8080/1 -X DELETE -H 'Content-Type: application/spkane.todo-list.v1+json'
curl -i http://127.0.0.1:8080/3 -X DELETE -H 'Content-Type: application/spkane.todo-list.v1+json'
curl -i http://127.0.0.1:8080

Build & Test

./bin/build.sh

The build script runs the Integration tests. If you want to run real local terraform tests, you can run this script:

./bin/tests_manual.sh

Terraform Provider

The source code for the Terraform provider can be found here:

In your terraform HCL you will need to reference the provider with something like this:

terraform {
  required_providers {
    todo = {
      source  = "spkane/todo"
      version = "2.0.3"
    }
  }
}

TODOs

  • https setup
  • Setup docker compose to use pre-built binary

todo-for-terraform_1_6_23's People

Contributors

spkane avatar dependabot[bot] avatar

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.