Instant MID Server on AWS Free Tier with Terraform
Summary
Sometimes for a demo or troubleshooting it is handy to be able to quickly launch a new ServiceNow MID Sever. Even better it is handy to have a declaritive action to allow rebuilding Windows servers on demand without having to manually install and configure. For this we can use Terraform!
Solution
To accomplish the example below you will need:
- An AWS Free Tier Account - Link
- An AWS Access Key for your AWS account - Link
- A Key Pair defined in your AWS EC2 console - Link
- The Terraform Binaries - Link
To get started on your Windows workstation, create the following directory structure from these files:
- TopLevelDirectory
- terraform.exe
- main.tf
- variables.tf
- terraform.tfvars
Expand to see sample Terraform Configuration files
main.tf variables.tf terraform.tfvars- Set your console key and secret in the terraform.tfvars file
- Then run:
terraform init terraform plan terraform apply
Upon completion you should get the IP and Admin password for your instance. You can login over RDP with these details and view the instance in the AWS Console.
Now see my other post PowerShell script for MID Installation, configure and run it on your new Windows Server. It will take a few minutes and then you can run discovery against your MID IP. Afterwards you may want to tighten up security on the AWS Security group for TCP 3389.
Leave a comment