/terraform-e2e

This is terraform e2e

Primary LanguageHCL

Screenshot from 2022-08-02 03-47-10 The e2e tests for terraform code

steps

  1. install terrform v1.2.6 using command snap install terraform --classic
  2. 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
  3. run terraform init
  4. run terraform apply
  5. run terraform destroy

once all the above steps work properly, then go ahead with e2e tests

  1. install go (follow this https://www.digitalocean.com/community/tutorials/how-to-install-go-on-ubuntu-20-04)
  2. go to the test folder
  3. run go mod tidy
  4. run go get all
  5. run go test

wait for test to complete this can take upto 5-7 minutes.

testing the multi-gh-account commit