I'm currently working on a project to automate the cloud environment setup using Infrastructure as Code (IaC). I'm planning on using tools such as ansible and terraform but I need to test if the cloud environment is set up as expected or not. In particular, I'm interested in checking not only the settings itself but also the connectivity among different services before installing applications. For instance, I need to check if the instance is associated with a load balancer and can receiving requests, or an instance can read/write to object storage.

The problem is we want to parameterize the settings so that we can use the same tool to setup different environment (e.g. different project, VPC, etc.) and IPs/names would change for the different environment. We are considering either: 1) using IaC tool to gather settings and test them after building, and 2) use testing tool (e.g. testinfra, inspec, serverspec) to read parameters and test accordingly. My concern is it would require a lot of effort to parse parameters and test accordingly since each environment would have a different environment (e.g. use of different services, # of nodes).

Does anyone have a suggestion for this problem?

  • 1
    What is IaC? A Wikipedia link would be welcome, thanks :-) – Nicolas Raoul Feb 19 '19 at 8:43
  • 1
    The title is extremely broad, this could attract some upvotes, so please edit the title into something that sums up what makes your question specific, thanks! – Nicolas Raoul Feb 19 '19 at 8:45
  • Thanks for the comment! I edited the title and added wikipedia link:) – Kenji Yonekawa Feb 20 '19 at 6:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.