Help us shape the future of Go! Take the 2026 Go Developer Survey

Harmony

module
v0.0.0-...-426422e Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: GPL-3.0

README

Build

cd to ./cmd/harmony then run go build

executable is placed inside the ./cmd/harmony directory

Be sure to create a infrastructure.hcl file in the same directory as the executable that you just created to create resources.

Example infrastructure.hcl

resource "aws_instance" "my-instance" {
    instance_type        = "t2.micro"
    image_id             = "ami-0889a44b331db0194"
    security_group_id    = "sg-ID"  // Use the security group ID
    key_pair_name        = "key_pair"
    subnet_id            = "subnet-123456"
    iam_instance_profile = "instance_profile"
    vpc_id               = "vpc-12345"
    
    tags = {
        Name = "test"
    }
}

Run

./harmony create infrastructure.hcl

./harmony delete infrastructure.hcl

Update provider package

go get github.com/mitchelldavis44/aws-provider@latest

NOTE: only EC2 provisioning is supported currently

Directories

Path Synopsis
cmd
harmony command
main.go
main.go
pkg
infrastructure
infrastructure/mock_infrastructure.go
infrastructure/mock_infrastructure.go

Jump to

Keyboard shortcuts

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