You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently using moto to mock out environment for tests, which works pretty well. However, it requires duplicating a lot of what's already defined in terraform, and doesn't test whether the code works correctly in the environment defined by terraform.
One possibility I'd like to investigate is using Localstack with terraform to automatically mock our terraform environment, and run tests on that: https://github.com/localstack/localstack
Possible issue I foresee if that Localstack doesn't support all AWS endpoints (or some require a "pro" version, including lambda layers and EKS), so we'd have to put workarounds to skip these when mocking our terraform.
The text was updated successfully, but these errors were encountered:
Sounds good. Licenses are not that expensive and if it turns out valuable we should consider purchasing. Why don't you give it a first try using the free version and we go from there.
Currently using moto to mock out environment for tests, which works pretty well. However, it requires duplicating a lot of what's already defined in terraform, and doesn't test whether the code works correctly in the environment defined by terraform.
One possibility I'd like to investigate is using Localstack with terraform to automatically mock our terraform environment, and run tests on that: https://github.com/localstack/localstack
A blog post on how you can possibly integrate localstack with terraform and docker: http://diego-pacheco.blogspot.com/2018/06/mocking-terraform-aws-using-docker.html
Possible issue I foresee if that Localstack doesn't support all AWS endpoints (or some require a "pro" version, including lambda layers and EKS), so we'd have to put workarounds to skip these when mocking our terraform.
The text was updated successfully, but these errors were encountered: