One of the favourite automation solutions of HeleCloud clients was presented by Hristofor Georgiev, AWS Solution Architect at the first ever meetup of HashiCorp User Group in Sofia. The event gathered more than 50 professionals on August 8, 2018 at DataArt meeting room. Hristofor demonstrated how to execute an automatic Terraform using AWS CodeBuild and Alexa.
“Amazon invests, promotes and develops intensively their cloud-based voice service Alexa. It isavailable for wide range of devices from Amazon and third-party manufacturers. By adding different Alexa Skills, we build natural voice experiences that provides more intuitive way to interact with the technology we use every day”, said Hristofor Georgiev, AWS Solution Architect, HeleCloud.
The case study presented how HeleCloud team sets an Alex Skills which sends request to AWS CodeBuild. Then the CodeBuild executes Terraform code to deploy a new infrastructure on AWS.
HashiCorp Terraform is a tool for building, changing, and versioning infrastructure safely and efficiently. It uses high-level syntax and assures flexibility when executing complex tasks onmultiple instances. Terraform is used on AWS to provision infrastructure like VPC, Subnets, Security Groups and Instances.
The challenge for HeleCloud team was how to automate HashiCorp Terraform. We applied the fully managed cloud build service AWS CodeBuild which scales automatically to meet peak build requirements. It is used for very fast actions and the needed budget is very low. To create more natural voice experience a Lambda function for Alexa skill was applied to start the CodePipeline. AWS Lambda is a compute service that allows code running without provisioning or managing servers. Some of the service advantages are that the code is executed only when needed and the scaling is automatic.
“Alexa tell terraform to begin”, was the very simple Alexa skill for triggering Terraform Deployment with voice command used for the demo session by Hristofor Georgiev, AWS Solution Architect, HeleCloud.
More details about HeleCloud case study are available in the presentation “Automatic Terraform Execution with CodeBuild and Alexa”. In addition, The HashiCorp User Group meetup record is available to watch for those who weren’t able to join us.