How to Deploy SnipeIT on AWS using Terraform

How to Deploy SnipeIT on AWS using Terraform
Written by Abhishek JalanNovember 16, 2021
2 min read
Terraform
16 VIEWS 2 LIKES 0 DISLIKES SHARE
2 LIKES 0 DISLIKES 16 VIEWS SHARE
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
16 VIEWS 2 LIKES 0 DISLIKES SHARE
2 LIKES 0 DISLIKES 16 VIEWS SHARE
Was this blog helpful?
You must be Logged in to comment
Code Block
Abhishek Jalan
DevSecOps Engineer
+45 more
19 Blog Posts
5 Discussion Threads
Trending Technologies
15
Software39
DevOps45
Frontend Development24
Backend Development20
Server Administration17
Linux Administration24
Data Center24
Sentry24
Terraform21
Ansible46
Docker28
Penetration Testing14
Kubernetes17
NGINX19
JenkinsX17
Techiio

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:

facebooklinkdeintwitter

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Copyright techiio.com @2020 Kolkata, India
made with by Abhishek & Priyanka Jalan
Copyright techiio.com @2020
made with by Abhishek & Priyanka Jalan