Our great sponsors
-
terratest
Terratest is a Go library that makes it easier to write automated tests for your infrastructure code.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
To focus on what the code does, rather than copying and pasting, you can get the code from here. I will still paste relevant code snippets into this post to help understanding.
This post is going to get you started with using Terratest to help test your infrastructure changes. Terratest describes itself as:
You can, if required, also pull in the aws-sdk-go package for more detailed API calls to test your infrastructure. I've used the ECR and ECS packages to help understand what is running in an ECS cluster etc.
Related posts
- my first go project, a CLI application to store IP addresses
- Send an Email through AWS SES with GoLang
- Trunk Based Development: Confused about how to test code before pushing to main? How does the deploy process work for many environments?
- terratest for infrastructure
- Is there a testing framework for Kubernetes and AWS resources?