Installation
- Clone the plugin:
git clone git@github.com:gravitational/teleport-plugins
- Install the plugin to Teleport:
cd teleport-plugins/terraform
make install
- Configure teleport:
tctl create example/teleport.yaml
tctl auth sign --format=file --user=terraform --out=terraform-identity --ttl=10h
Move generated keys to the desired location.
- If you desire to use an example for testing:
cp example/vars.tfvars.example example/vars.tfvars
Edit vars.tfvars
and set path to certificate files which were generated in the previous step.
Regenerating the schema
go install github.com/gravitational/protoc-gen-terraform
make gen-schema
Usage
See example/*.tf
for available configuration options. make apply
to do an initial application of this configuration to your Terraform cluster.