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

Added Terraform Plan Step for Testing #75

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Added Terraform Plan Step for Testing #75

wants to merge 1 commit into from

Conversation

robg-test
Copy link
Collaborator

@robg-test robg-test commented Jul 6, 2023

image

@robg-test robg-test force-pushed the TERRA-65 branch 3 times, most recently from 768f5f0 to dbb575e Compare July 7, 2023 15:45
@robg-test robg-test marked this pull request as ready for review July 7, 2023 15:45
@robg-test robg-test requested a review from cmbuckley July 7, 2023 15:45
@robg-test
Copy link
Collaborator Author

Should I rename these to test?
Suppose they serve 2 purposes here?

@cmbuckley
Copy link
Member

Request rebase of this off main to fix the route53 example issue.

This one will need some careful thought as about the intention behind these tests

@robg-test
Copy link
Collaborator Author

robg-test commented Jul 10, 2023

Some thoughts:

Route53 change - I'd rather keep this here, the commits won't be squashed so the history will keep track of it as an individual change. this closed PR will contain the required context of why it was fixed.

Name - I believe these should be called test and treated as such, they are effectively sample implementations of the terraform code which can be planned on a an actual AWS account which I believe do add value to the QA of the module.

What to run on change - If the pipeline is dependent on the examples working then you have to run them, if you change an example which is broken and subsequently run a change to a module. Then the CI will break from something not in the current PR which doesn't seem right.

I will update the name of the folders to test and re-request an approval.

@robg-test robg-test requested a review from cmbuckley July 10, 2023 13:44
@robg-test robg-test changed the title Added Terraform Plan Step Added Terraform Plan Step for Testing Jul 10, 2023
@robg-test robg-test force-pushed the TERRA-65 branch 4 times, most recently from b6a15ff to 796ec81 Compare July 11, 2023 14:51
@robg-test
Copy link
Collaborator Author

robg-test commented Jul 17, 2023

Happy to take a steer from you on this one @cmbuckley whether you think it's worth doing this.

My main motivation for these tests is to let us create working modules proactively.

This raises a question on how we steer this project. It's not necessarily needed if we create modules for projects and use this repo as reference. Then the tests would be the implementation on project.

@robg-test robg-test force-pushed the TERRA-65 branch 4 times, most recently from b44fe76 to 107c557 Compare July 17, 2023 15:28
@@ -69,6 +69,17 @@ jobs:
id: validate
run: terraform validate

- name: Terraform Plan
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably needs a check if test folder exists

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

Successfully merging this pull request may close these issues.

2 participants