terraform-provider-concourse

command module
v0.0.0-...-81aef08 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 3 Imported by: 0

README

Terraform Provider for Concourse Labs

Terraform Provider Binary

  • Determine the architecture of your operating system ($GOARCH column)

    Examples:

    • Mac with Intel processor - darwin_amd64
    • Mac with Apple processor - darwin_arm64
    • Linux (64-bit) with Intel processor - linux_amd64
    • Linux (64-bit) with AMD processor - linux_amd64
  • Create a terraform plugin directory based on $GOARCH

    mkdir ~/.terraform.d/plugins/concourselabs.com/prod/concourse/0.9/<$GOOS>_<$GOARCH>

  • Install Terraform SDK from the project root

    go get github.com/hashicorp/terraform-plugin-sdk/v2/diag
    go get github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema
    go get github.com/hashicorp/terraform-plugin-sdk/v2/plugin
    
  • Setup application

    make build
    make install
    

Infrastructure-as-Code

  • Remove prior state and cache files (they could be associated with a different provider version and may cause conflicts)

  • Navigate to the examples/ directory

    cd ./examples
    
  • Set environment variables CONCOURSE_USER, CONCOURSE_SECRET, and CONCOURSE_DOMAIN

    export CONCOURSE_USER="email@domain.com"
    export CONCOURSE_SECRET="UserProfileTokenCreatedOnProdDotConcourseLabsDotIo=="
    export CONCOURSE_DOMAIN="AWSorGCPdomain"
    
  • Initialize

    terraform init
    
  • Plan

    terraform plan
    
  • Apply

    terraform apply --auto-approve
    
  • Destroy

    terraform destroy --auto-approve
    

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