How to Deploy SnipeIT on AWS using Terraform

How to Deploy SnipeIT on AWS using Terraform
Techiio-author
Written by Abhishek JalanNovember 16, 2021
2 min read
Terraform
23 VIEWS 2 LIKES 0 DISLIKES SHARE
2 LIKES 0 DISLIKES 23 VIEWS SHARE
Techiio-author
Abhishek Jalan

DevSecOps Engineer

Let's deploy SnipeIT on AWS EC2 CentOS7 using Terraform.

Today we are going to deploy Snipe-IT on AWS EC2 CentOS7 using Terraform

In this terraform, we will use existing AWS Security Groups, VPC & Network segments along with EC2 SSH Key.

Let's clone my GitHub repo:

https://github.com/abhishekjalan87/snipeit-awsdeploy-terraform.git

Open the repo in vscode

blogpost

Let's go one by one file:

main.tf

Please modify region, bucketname, ami-id, key_name, private subnetid, vpc id. (you can collect all this information from your existing AWS console)

Save the file once you're done.

blogpost

Now, sshkey.pem

Remove the line and paste your ssh key pem content.

blogpost

Now, installer.tf

Replace the line number 8 value with your Security group name.

If anyone like to create new Security group, please post your requirements in comment box, I will update my script.
blogpost

All done, no changes required in variables.tf file.

Now go to terminal.

Type below command to initialize terraform.

terrafrom init

Type below command to validate your terraform script if any errors or not.

terraform validate

Type below command to deploy on AWS.

Enter "yes" for the confirmation

terraform apply

Once the deployment is completed successfully, try to access snipe it using http://yourprivateip


terraform snipeit
snipeitaws
snipeit
snipeit installation
snipeit aws TF
23 VIEWS 2 LIKES 0 DISLIKES SHARE
2 LIKES 0 DISLIKES 23 VIEWS SHARE
Was this blog helpful?
techiio-price-plantechiio-price-plantechiio-price-plantechiio-price-plantechiio-price-plan
You must be Logged in to comment
Code Block
Techiio-author
Abhishek Jalan
DevSecOps Engineer
Techiio-followerTechiio-followerTechiio-followerTechiio-followerTechiio-follower
+64 more
19 Blog Posts
9 Discussion Threads
Trending Technologies
15
Software41
DevOps47
Frontend Development24
Backend Development20
Server Administration17
Linux Administration26
Data Center24
Sentry24
Terraform23
Ansible83
Docker70
Penetration Testing16
Kubernetes21
NGINX20
JenkinsX17
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance