graylog-plugin-aws icon indicating copy to clipboard operation
graylog-plugin-aws copied to clipboard

Add scripts that allow creation and teardown of AWS test setups

Open bernd opened this issue 7 years ago • 4 comments

Testing changes to this plugin is currently quite hard if the developer doesn't have a running AWS setup. We need a way to simplify the creation and also deletion of test setups in AWS so we can test changes to this plugin.

We could create terraform scripts that will create all required resources in AWS and an empty VM where we can run Graylog with the AWS plugin. Terraform also provides a way to delete all resources again once testing is done.

Without something like this, it's really hard for developers and PR reviewers to actually test changes because it requires a lot of manual work.

bernd avatar Apr 19 '18 15:04 bernd

I didn't write this, but I use this for for these types of situations. Written from terraform 0.8.8.

Graylog-Dev-AWS.zip

ghost avatar Apr 19 '18 15:04 ghost

@bernd This would be very useful for our automated demo environments, too. I have everything terraform'd except Graylog and the AWS log sources.

lennartkoopmann avatar Apr 22 '18 20:04 lennartkoopmann

Hello, this project may be useful https://github.com/localstack/localstack for this issue, this way you don't need to spend money on bringing up AWS real services. Running it in dockers, and some integration tests may help

radykal-com avatar Jun 24 '18 12:06 radykal-com

Do we want terraform or cloud formation, I have both. It is setup as ECS tasks running on a ASG. Let me know if you would like the code.

ion9 avatar Dec 04 '18 23:12 ion9