Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate mocking terraform environment with Localstack #27

Open
jterry64 opened this issue Dec 13, 2019 · 1 comment
Open

Investigate mocking terraform environment with Localstack #27

jterry64 opened this issue Dec 13, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@jterry64
Copy link
Member

jterry64 commented Dec 13, 2019

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.

@jterry64 jterry64 added the enhancement New feature or request label Dec 13, 2019
@jterry64 jterry64 self-assigned this Dec 13, 2019
@thomas-maschler
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants