@pckilgore/now-terraform
v0.4.1
Published
A now.sh builder for terraform.
Downloads
9
Maintainers
Readme
:city_sunrise: now-terraform
Deploy your infrastructure using now.sh builders.
Uses [email protected]
Example
/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}"
}