@pckilgore/now-terraform

0.4.1 • Public • Published

🌇 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}"
}

Dependents (0)

Package Sidebar

Install

npm i @pckilgore/now-terraform

Weekly Downloads

0

Version

0.4.1

License

MIT

Unpacked Size

5.57 kB

Total Files

4

Last publish

Collaborators

  • pckilgore