terraform-provider-hyperone

command module
v0.0.0-...-2804e69 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2019 License: MPL-2.0 Imports: 3 Imported by: 0

README

HyperOne Terraform Provider

Build Status Go Report Card

Getting The Provider

# install latest (git) version of terraform-provider-hyperone in your $GOPATH/bin
$ go get -u github.com/hyperonecom/terraform-provider-hyperone

Using the provider

provider "hyperone" {
    token   = "..."      # you can also use HYPERONE_ACCESS_TOKEN_SECRET enviroment variable
    project = "..."      # you can also use HYPERONE_PROJECT enviroment variable
}

resource "hyperone_disk" "disk" {
    size = 200
    type = "volume"
    name = "nginx-logs"
}

resource "hyperone_firewall" "firewall" {
    name = "nginx-firewall"

    ingress {
        name = "http"
        action = "allow"
        filter = [ "tcp:80" ]
        external = [ "0.0.0.0/0" ]
        internal = [ "*" ]
        priority = 300
    }

    egress {
        name = "all"
        action = "allow"
        filter = [ "tcp", "udp" ]
        external = [ "0.0.0.0/0" ]
        internal = [ "*" ]
        priority = 100
    }
}

Using H1 cli to set the environment variables

$ eval $(h1 env)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL