The e2e tests for terraform code
steps
- install terrform v1.2.6 using command
snap install terraform --classic
- go to ec2 folder
- run
export AWS_ACCESS_KEY_ID=_your_AWS_ACCESS_KEY_ID
- run
export AWS_SECRET_ACCESS_KEY=_your_AWS_SECRET_ACCESS_KEY
- run
- run
terraform init
- run
terraform apply
- run
terraform destroy
once all the above steps work properly, then go ahead with e2e tests
- install go (follow this https://www.digitalocean.com/community/tutorials/how-to-install-go-on-ubuntu-20-04)
- go to the test folder
- run
go mod tidy
- run
go get all
- run
go test
wait for test to complete this can take upto 5-7 minutes.
testing the multi-gh-account commit