From 515e0100657610a4667584cdd8d37cc571aa4b69 Mon Sep 17 00:00:00 2001 From: jon4hz Date: Sat, 25 Feb 2023 18:09:06 +0100 Subject: [PATCH 1/2] docs: add terraform --- docs/integrations/frameworks/terraform.mdx | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docs/integrations/frameworks/terraform.mdx diff --git a/docs/integrations/frameworks/terraform.mdx b/docs/integrations/frameworks/terraform.mdx new file mode 100644 index 0000000000..7161ec586d --- /dev/null +++ b/docs/integrations/frameworks/terraform.mdx @@ -0,0 +1,34 @@ +--- +title: "Terraform" +description: "How to use Infisical to inject environment variables and secrets into terraform." +--- + +Prerequisites: + +- Set up and add envars to [Infisical Cloud](https://app.infisical.com) +- [Install the CLI](/cli/overview) + +## Initialize Infisical for your [Terraform](https://www.terraform.io/) project + +```bash +# navigate to the root of your of your project +cd /path/to/project + +# then initialize Infisical +infisical init +``` + +## Run terraform as usual but with Infisical + +```bash +infisical run -- + +# Example +infisical run -- terraform plan +``` + + + To inject any arbitrary variable to terraform, you have + to prefix them with `TF_VAR`. Read more about that + [here](https://developer.hashicorp.com/terraform/cli/config/environment-variables#tf_var_name). + From 10f75c8e55abef8afcc5c2eb14fb1b61386dc835 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Fri, 3 Mar 2023 21:07:18 -0500 Subject: [PATCH 2/2] add terraform docs --- docs/integrations/overview.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/integrations/overview.mdx b/docs/integrations/overview.mdx index 9d88224aaf..5d3e24eebc 100644 --- a/docs/integrations/overview.mdx +++ b/docs/integrations/overview.mdx @@ -12,6 +12,7 @@ Missing an integration? Throw in a [request](https://github.com/Infisical/infisi | [Docker](/integrations/platforms/docker) | Platform | Available | | [Docker-Compose](/integrations/platforms/docker-compose) | Platform | Available | | [Kubernetes](/integrations/platforms/kubernetes) | Platform | Available | +| [Terraform](/integrations/frameworks/terraform) | Infrastructure as code | Available | | [PM2](/integrations/platforms/pm2) | Platform | Available | | [Heroku](/integrations/cloud/heroku) | Cloud | Available | | [Vercel](/integrations/cloud/vercel) | Cloud | Available |