Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1016 Bytes

readme.md

File metadata and controls

40 lines (27 loc) · 1016 Bytes

Terra Providers

This repository contains popular Terraform providers generated using Lingon's terragen.

The current providers were created manually. The plan is to add automation and do this on a regular interval.

Manually generate a provider

Requirements: go install github.com/golingon/lingon/cmd/terragen@latest

gen.sh aws hashicorp/aws 4.63.0

## Or step by step

export PROVIDER_NAME=aws
export PROVIDER_SOURCE=hashicorp/aws
export PROVIDER_VERSION=4.60.0
export PROVIDER=$PROVIDER_NAME=$PROVIDER_SOURCE:$PROVIDER_VERSION
export OUTDIR=$PROVIDER_NAME/$PROVIDER_VERSION
export OUTPKG=github.com/golingon/terraproviders/$PROVIDER_NAME/$PROVIDER_VERSION
terragen -out $OUTDIR -pkg $OUTPKG -provider $PROVIDER -force

cd $OUTDIR && go mod init $OUTPKG && go mod tidy && cd ../..

Generate all providers latest version

go generate -x ./...

Add new provider

echo "hashicorp/vault" >> providers.txt
go generate -x ./...