Skip to content

Commit

Permalink
Update Terraform instructions (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristim authored Jul 6, 2018
1 parent f0598ec commit cedc8ba
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions START.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,36 @@ Notes:

### Install via terraform ###

You need to have [terraform](https://www.terraform.io/downloads.html) installed
on your machine.

#### Default install ####

To install it via terraform, you need to have
[terraform installed](https://www.terraform.io/downloads.html) on your machine.
Pre-built binaries easier to install are available when using the Terraform
[module](https://registry.terraform.io/modules/cristim/autospotting/aws)
available from the Terraform Registry.

Copy and paste the below snippet into your Terraform configuration:

```hcl
module "autospotting" {
source = "cristim/autospotting/aws"
version = "0.0.9" # this version is subject to change
}
```

You can also insert any of the variables you want to override, then:

```shell
terraform init # fetches required plugin and modules for terraform
export AWS_DEFAULT_REGION=XXXX
export AWS_ACCESS_KEY_ID=XXXX
export AWS_SECRET_ACCESS_KEY=XXXX
terraform plan
terraform apply -auto-approve
```

#### Custom binary installation ####

The `lambda.zip` file can be generated by building it locally using
`make`(look for it in the `build` directory) but you'll need
Expand Down

0 comments on commit cedc8ba

Please sign in to comment.