Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM golang:alpine AS terraform-bundler-build
- RUN apk --no-cache add git unzip &&
- go get -d -v github.com/hashicorp/terraform &&
- go install ./src/github.com/hashicorp/terraform/tools/terraform-bundle
- COPY terraform-bundle.hcl .
- RUN terraform-bundle package terraform-bundle.hcl &&
- mkdir -p terraform-bundle &&
- unzip -d terraform-bundle terraform_*.zip
- ####################
- FROM python:alpine
- RUN apk add --no-cache git make &&
- pip install awscli
- COPY --from=terraform-bundler-build /go/terraform-bundle/* /usr/local/bin/
- terraform {
- # Version of Terraform to include in the bundle. An exact version number
- # is required.
- version = "0.10.0"
- }
- # Define which provider plugins are to be included
- providers {
- # Include the newest "aws" provider version in the 1.0 series.
- aws = ["~> 1.0"]
- # Include both the newest 1.0 and 2.0 versions of the "google" provider.
- # Each item in these lists allows a distinct version to be added. If the
- # two expressions match different versions then _both_ are included in
- # the bundle archive.
- google = ["~> 1.0", "~> 2.0"]
- # Include a custom plugin to the bundle. Will search for the plugin in the
- # plugins directory, and package it with the bundle archive. Plugin must have
- # a name of the form: terraform-provider-*, and must be build with the operating
- # system and architecture that terraform enterprise is running, e.g. linux and amd64
- customplugin = ["0.1"]
- }
Add Comment
Please, Sign In to add comment