# How to use terraform with IDX?

**URL:** <https://community.firebasestudio.dev/t/how-to-use-terraform-with-idx/119>\
**Category:** General\
**Created:** [May 17, 2024, 10:37am UTC](https://community.firebasestudio.dev/t/how-to-use-terraform-with-idx/119 "2024-05-17T10:37:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![didacd](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/didacd/32/98_2.png) [@didacd](https://community.firebasestudio.dev/u/didacd)\
**Post date:** [May 17, 2024, 10:37am UTC](https://community.firebasestudio.dev/t/how-to-use-terraform-with-idx/119/1 "2024-05-17T10:37:45Z")

</div>

Hi,

I was trying to create an IDX project to deploy some code to GCP using **Terraform**.

But when trying to install it with the `dev.nix` file. I’ve encountered several issues. It seems it is an “unfree” package and nix requres a special flag to be defined. But when applying the configuration stated in the official nix website. It seems to keep crashing:

Documentation: [Unfree Software - NixOS Wiki](https://nixos.wiki/wiki/Unfree_Software)

Additionally, I also tried a temporal workaround. It seems to be possible to install it with a nix-shell command (this is not permanent). But the installation takes ages.

```auto
NIXPKGS_ALLOW_UNFREE=1 nix-shell -p terraform

```

---

<div class="post-metadata">

**Author:** ![ffais](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/ffais/32/405_2.png) [@ffais](https://community.firebasestudio.dev/u/ffais)\
**Post date:** [June 4, 2024, 9:25am UTC](https://community.firebasestudio.dev/t/how-to-use-terraform-with-idx/119/2 "2024-06-04T09:25:36Z")

</div>

Same problem here, I don’t know how to enable unfree packages.

---

<div class="post-metadata">

**Author:** ![Carsten\_DS](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/carsten_ds/32/547_2.png) [@Carsten\_DS](https://community.firebasestudio.dev/u/Carsten_DS)\
**Post date:** [June 14, 2024, 1:32pm UTC](https://community.firebasestudio.dev/t/how-to-use-terraform-with-idx/119/3 "2024-06-14T13:32:12Z")

</div>

Any update on this yet?

---

<div class="post-metadata">

**Author:** ![kirupac](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/kirupac/32/5_2.png) [@kirupac](https://community.firebasestudio.dev/u/kirupac)\
**Post date:** [June 14, 2024, 7:29pm UTC](https://community.firebasestudio.dev/t/how-to-use-terraform-with-idx/119/4 "2024-06-14T19:29:12Z")

</div>

We’ve already made the change to allow unfree packages and its going through testing. We’ll deploy it live in production really soon! Either I or @Alex can update here once we have specifics.

---

<div class="post-metadata">

**Author:** ![Alex](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/alex/32/218_2.png) [@Alex](https://community.firebasestudio.dev/u/Alex)\
**Post date:** [June 14, 2024, 8:29pm UTC](https://community.firebasestudio.dev/t/how-to-use-terraform-with-idx/119/5 "2024-06-14T20:29:33Z")

</div>

IDX now allows unfree packages to be specified in dev.nix just like all other nix packages!

---

<div class="post-metadata">

**Author:** ![kirupa](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/kirupa/32/4_2.png) [@kirupa](https://community.firebasestudio.dev/u/kirupa)\
**Post date:** [June 14, 2024, 9:27pm UTC](https://community.firebasestudio.dev/t/how-to-use-terraform-with-idx/119/6 "2024-06-14T21:27:26Z")

</div>

Yes! Thanks @Alex 🙂

 ![image (1)](https://us1.discourse-cdn.com/flex002/uploads/idxcommunity/original/1X/93f8f95278924c2174f6abf1d9a3bca5e8c4a6c3.png)
