elastic / elastic/cloudbeat

[Automation] CSPM sanity test with cloudformation

Open
#1,149 3 comments 0 reactions 0 assignees View on GitHub
automation aws cloudbeat Team:Cloud Security
Dominant language
Go
Stars
58
Forks
55
Avg merge
9h 9m
Merged PRs (30d)
424

Description

### Motivation
The Create-Environment Github workflow creates an EC2 instance with Terraform. Later on, after the creation of agent policy, it ssh into the instance and installs the agent with the required fleet-url and enrollment-token parameters.
Instead, we can use the cloudformation to deploy the CSPM instance as a whole unit.
It will give us more coverage around that flow and we will be able to delete custom code on the test that runs the agent in the instance.

### Definition of done
- [ ] The "Deploy CSPM agent" step should deploy a CloudFormation stack
- [ ] Delete the CSPM EC2 from the Terraform script

### Related tasks/epics
- An example for using cloudformation: https://github.com/elastic/cloudbeat/pull/1076/

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.