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

Add config file specific code #100

Merged
merged 2 commits into from
Jan 19, 2024
Merged

Add config file specific code #100

merged 2 commits into from
Jan 19, 2024

Conversation

jaredfholgate
Copy link
Member

@jaredfholgate jaredfholgate commented Jan 18, 2024

Pull Request

Issue

Issue #, if available: N/A

Description

Description of changes:

This PR adds the ability to pass a config file path that is then included in the repository. This is to be more concise for users of the accelerator and only prompt for a config file if they are using a starter module that needs one. Also enables them to call the config file whatever name they desire.

This change has been tested and testing evidence can be found in the sister PR here: Azure/alz-terraform-accelerator#89

License

By submitting this pull request, I confirm that my contribution is made under the terms of the projects associated license.

Copy link
Contributor

@oZakari oZakari left a comment

Choose a reason for hiding this comment

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

LGTM

@oZakari oZakari merged commit adb21f4 into main Jan 19, 2024
2 checks passed
@jaredfholgate jaredfholgate deleted the enhancement-configuration-file branch January 19, 2024 08:51
jaredfholgate added a commit to Azure/alz-terraform-accelerator that referenced this pull request Jan 19, 2024
<!-- Thank you for submitting a Pull Request. Please fill out the
template below.-->
## Overview/Summary

This PR introduces templating for the config file of the complete
module. It also introduces the specific config file parameter.

This PR has a dependency on:
Azure/ALZ-PowerShell-Module#100

## This PR fixes/adds/changes/removes

1. #85 

### Breaking Changes

`additional_files` has been changed to a hidden input, so users will no
longer be prompted fore this.

## Testing Evidence

Will trigger e2e tests.

Ran an end to end test locally and here is the successful plan run with
a custom config file, also tested with an empyy value for the config
file and confirms it defaults to the `config.yaml` file as expected:

![image](https://github.com/Azure/alz-terraform-accelerator/assets/1612200/2aaa0261-a6ec-4e72-8653-b28bfcd0f33e)


![image](https://github.com/Azure/alz-terraform-accelerator/assets/1612200/109b00ec-fdf2-45c0-95d7-c33f0c9ff2a6)


![image](https://github.com/Azure/alz-terraform-accelerator/assets/1612200/61c561e3-f8b7-4440-aff9-72ca7fecc0cc)


## As part of this Pull Request I have

- [x] Checked for duplicate [Pull
Requests](https://github.com/Azure/alz-terraform-accelerator/pulls)
- [x] Associated it with relevant
[issues](https://github.com/Azure/alz-terraform-accelerator/issues), for
tracking and closure.
- [x] Ensured my code/branch is up-to-date with the latest changes in
the `main`
[branch](https://github.com/Azure/alz-terraform-accelerator/tree/main)
- [x] Performed testing and provided evidence.
- [x] Updated relevant and associated documentation.

---------

Co-authored-by: Jared Holgate <jaredholgate@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants