JSPM

@pckilgore/now-terraform

0.4.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q24064F
  • License MIT

A now.sh builder for terraform.

Package Exports

  • @pckilgore/now-terraform

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@pckilgore/now-terraform) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

🌇 now-terraform

Statusnpm version

Deploy your infrastructure using now.sh builders.

Uses terraform@0.11.13

Example

This code is based on this fixture

/now.json

{
  "version": 2,
  "build": {
    "env": {
      "TF_VAR_AWS_ACCESS_KEY_ID": "@your_secret",
      "TF_VAR_AWS_SECRET_ACCESS_KEY": "@your_secret",
      "TF_VAR_REGION": "us-east-1"
    }
  },
  "builds": [{ "src": "index.tf", "use": "@pckilgore/now-builder-terraform" }]
}

/infrastructure.tf

variable "AWS_ACCESS_KEY_ID" {}
variable "AWS_SECRET_ACCESS_KEY" {}

variable "region" {
  default = "us-east-1"
}

provider "aws" {
  version    = "~> 2.6"
  access_key = "${var.AWS_ACCESS_KEY_ID}"
  secret_key = "${var.AWS_SECRET_ACCESS_KEY}"
  region     = "${var.region}"
}