Terraform Powered by GlobalSolutions
Terraform is one of the most popular Infrastructure-as-Code (IaC) tools, used by DevOps teams to automate infrastructure tasks and provision cloud resources. It is an open-source, cloud-agnostic tool developed by HashiCorp and written in Go. Terraform handles both orchestration and configuration management, supports popular providers like AWS, Azure, GCP, and Oracle, and provides immutable infrastructure where configuration changes are straightforward.
We have ensured the image is hardened to be secured from all existing vulnerabilities.
Terraform Workflow
terraform init— Initializes the local Terraform environment. Always the first command to run.terraform plan— Compares the Terraform state with the current state in the cloud and displays an execution plan.terraform apply— Executes the plan, creating or modifying infrastructure resources in your environment.terraform destroy— Deletes all resources governed by the current Terraform environment.
Why Subscribe to Our Offering in AWS Marketplace
- We update the software constantly to the latest version to address security issues.
- Customers can kick-start their core work right away with our pre-packaged AMIs.
- Production-ready application stacks.
Accessing Your AMI from AWS Marketplace
To get started with your Terraform stack:
- Subscribe: Purchase the Terraform AMI from the AWS Marketplace.
- Connect via SSH:
- SSH into the instance using the following command:
ssh -i yourpemfile.pem ec2-user@<public-ip-of-your-server>
- Once logged in you will land in the home directory.
Getting Started with Terraform
We have packaged Terraform with sample code to help you kick-start building your infrastructure quickly. Once you log into the instance, navigate to the gs folder from the home directory where you will find the sample code.
Sample Terraform Code — Local S3 Bucket
To help you get started quickly, we have included a sample Terraform configuration in the ~/my-local-terraform folder on your instance. This example provisions an S3 bucket and is ready to run immediately using LocalStack, which simulates AWS services locally — no AWS account or credentials required.
What's Included
- Provider: Configured to use LocalStack as a local AWS endpoint (
http://localhost:4566) - Resource: An S3 bucket (
my-local-test-bucket) provisioned via the AWS provider - Path:
~/my-local-terraform/main.tf
LocalStack — Run Terraform Locally
This instance comes with LocalStack pre-installed and running via Docker. LocalStack emulates AWS cloud services on your local machine, allowing you to test Terraform configurations without incurring any AWS costs.
To verify LocalStack is running, execute:
curl http://localhost:4566/_localstack/health
You should see a JSON response confirming that the S3 service is available.
Running the Sample
Navigate to the sample directory and execute the Terraform workflow:
cd ~/my-local-terraform terraform init terraform plan terraform apply -auto-approve
To verify the S3 bucket was created locally:
aws --endpoint-url=http://localhost:4566 --region us-east-1 --no-sign-request s3 ls
When you are done testing, clean up the resources with:
terraform destroy -auto-approve
AWS Cost Optimizer — CloudInsider
Our other popular offering is the AWS Cost Optimizer aka CloudInsider, available in AWS Marketplace. This service has helped our customers save significantly on AWS and other cloud spending. It is easy to subscribe and you can see the savings in minutes.
▶ Watch Demo Video Subscribe on AWS Marketplace
Support
For any questions or assistance with our AWS Marketplace offering, reach out to us at support@theglobalsolutions.net.