DevSecOps Engineer
Today we are going to deploy Snipe-IT on AWS EC2 CentOS7 using Terraform
Let's clone my GitHub repo:
Open the repo in vscode
Let's go one by one file:
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.
Remove the line and paste your ssh key pem content.
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.
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