# Terraform Provider Akash - Beta Preview

**URL:** <https://archiveforum.akash.network/t/terraform-provider-akash-beta-preview/4587>\
**Category:** How to Deploy\
**Created:** [June 22, 2022, 9:13pm UTC](https://archiveforum.akash.network/t/terraform-provider-akash-beta-preview/4587 "2022-06-22T21:13:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlf](https://sea2.discourse-cdn.com/flex020/user_avatar/archiveforum.akash.network/jlf/32/4404_2.png) [@jlf](https://archiveforum.akash.network/u/jlf)\
**Post date:** [June 22, 2022, 9:13pm UTC](https://archiveforum.akash.network/t/terraform-provider-akash-beta-preview/4587/1 "2022-06-22T21:13:49Z")

</div>

# Terraform Provider Akash - Beta Preview

Hello! I’m making this post as an “hello world” for a project I’ve been working on on my free time that I think might interest some of the folks in this community. I have been developing a Terraform provider for deploying on Akash. In this post I’ll go through the current state of the project as well as what can be expected in the beta.

**Note:** The project will be open sourced.

Currently there is a working version of the provider that can create and destroy deployments through a Terraform script. This empowers developers with an easy, IaC approach to deployments.  
Why IaC? The key is, faster speed and consistency of deployments. The goal of IaC is to make things faster by eliminating manual processes and eliminating the slack in the process. A code-based approach makes it easier to get more done in less time. This provider will allow you to get your workloads running on Akash fast and automatically.  
Currently the provider is chosen based on pricing but more filters will be enabled in the future.  
Currently certificate creation is not supported so you’ll have to have it created beforehand. See Akash’s CLI guide for more details.

The provider relies heavily on environment variables and a full list will be presented in the provider’s README.md file.

## Beta

For the beta I want to deliver the base functionality which allows the apply/destroy of deployments through Terraform. It will go live with automated lease creation based on pricing and configuration based on environment variables.

The beta will be focused on stabilising the solution, implementing better error handling and make a more resilient solution. All feedback is important and contributions are encouraged.

## Preview

Example Terraform script (the SDL is the sample Wordpress application provided by the Akash team):

 ![Screenshot 2022-06-22 at 21.57.26](https://us1.discourse-cdn.com/flex020/uploads/akash1/original/2X/3/32e858c07b5b83a95feb317fe744fdb1930f39e1.png)

Executing `terraform apply` and `terraform destroy`:

 ![Screenshot 2022-06-22 at 21.31.47](https://us1.discourse-cdn.com/flex020/uploads/akash1/original/2X/1/1d96af41aef98522ec3440782e2c60f3dfc1bdd8.png)  
…  
 ![Screenshot 2022-06-22 at 21.31.32](https://us1.discourse-cdn.com/flex020/uploads/akash1/original/2X/b/b55c5fe9950330f395bf96e8fed69cf3ce3f647e.png)  
…  
 ![Screenshot 2022-06-22 at 21.32.10](https://us1.discourse-cdn.com/flex020/uploads/akash1/original/2X/7/7175dcca0b028cb39ceaaf0a680a3c7e9b375608.png)  
As can be seen, the output will give the service URIs so users can easily access their deployed services

 ![Screenshot 2022-06-22 at 21.32.52](https://us1.discourse-cdn.com/flex020/uploads/akash1/original/2X/2/282cd997422e1eab7ed847d702210dca66a4de5f.png)

## Thank you

Thank you for reading! Feel free to leave questions and suggestions. I’ll be answering them 🙂

---

<div class="post-metadata">

**Author:** ![JasdeepSingh](https://sea2.discourse-cdn.com/flex020/user_avatar/archiveforum.akash.network/jasdeepsingh/32/45_2.png) [@JasdeepSingh](https://archiveforum.akash.network/u/JasdeepSingh)\
**Post date:** [June 24, 2022, 7:55am UTC](https://archiveforum.akash.network/t/terraform-provider-akash-beta-preview/4587/2 "2022-06-24T07:55:00Z")

</div>

Wow this is soooo coool. I’ve been waiting for this one for so long. Nice job on this @jlf. Looking forward to what comes next  
 ![Excited Season 2 GIF by The Office](https://us1.discourse-cdn.com/flex020/uploads/akash1/original/2X/0/0aea35461335dd88443c2643b10dd54220ec006a.webp)

---

<div class="post-metadata">

**Author:** ![bogdanpopey](https://sea2.discourse-cdn.com/flex020/user_avatar/archiveforum.akash.network/bogdanpopey/32/3213_2.png) [@bogdanpopey](https://archiveforum.akash.network/u/bogdanpopey)\
**Post date:** [June 28, 2022, 12:22pm UTC](https://archiveforum.akash.network/t/terraform-provider-akash-beta-preview/4587/3 "2022-06-28T12:22:54Z")

</div>

WOW. this will attract so many cloud developers. the magnitude of this can be huge! Continue. Obtain a grant for this!

---

<div class="post-metadata">

**Author:** ![jestovar1980](https://sea2.discourse-cdn.com/flex020/user_avatar/archiveforum.akash.network/jestovar1980/32/289_2.png) [@jestovar1980](https://archiveforum.akash.network/u/jestovar1980)\
**Post date:** [June 29, 2022, 8:26am UTC](https://archiveforum.akash.network/t/terraform-provider-akash-beta-preview/4587/4 "2022-06-29T08:26:31Z")

</div>

Hey this is awesomeee! from here to deploying Akash using helm charts is just a jump. Keep going with this project 👏👏 hope they give you a grant
