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

feature: add support for the newest variables in mcaf-workspace, set assessments_enabled to true by default as is best practise, optimize optionals #56

Merged
merged 4 commits into from
Jul 30, 2024

Conversation

marwinbaumannsbp
Copy link
Contributor

@marwinbaumannsbp marwinbaumannsbp commented Jul 29, 2024

Add support for the newest variables in mcaf-workspace

  • allow_destroy_plan
  • assessments_enabled -> set to true by default
  • auto_apply_run_trigger
  • description
  • trigger_patterns

Optimize optionals

https://developer.hashicorp.com/terraform/language/v1.3.x/expressions/type-constraints#optional-object-type-attributes
Default: (Optional) The second argument defines the default value that Terraform should use if the attribute is not present. This must be compatible with the attribute type. If not specified, Terraform uses a null value of the appropriate type as the default.

Removed the null values in the optional vars. e.g. optional(string, null) -> optional(string)

@github-actions github-actions bot added the feature New feature or request label Jul 29, 2024
Copy link
Contributor

github-actions bot commented Jul 29, 2024

Terraform Format and Style 🖌success

Terraform Initialization ⚙️``

Terraform Lint 📖success

Terraform Validation 🤖success

Validation Output

Success! The configuration is valid.


…assessments_enabled to true by default as is best practise
@marwinbaumannsbp marwinbaumannsbp force-pushed the upgrade-mcaf-workspace branch from 8e89c0a to 3267658 Compare July 29, 2024 15:25
@marwinbaumannsbp marwinbaumannsbp force-pushed the upgrade-mcaf-workspace branch from 0d721b1 to 7d67002 Compare July 30, 2024 07:07
@marwinbaumannsbp marwinbaumannsbp changed the title feature: add support for the newest variables in mcaf-workspace, set assessments_enabled to true by default as is best practise feature: add support for the newest variables in mcaf-workspace, set assessments_enabled to true by default as is best practise, optimize optionals Jul 30, 2024
main.tf Outdated Show resolved Hide resolved
shoekstra
shoekstra previously approved these changes Jul 30, 2024
Co-authored-by: Stephen Hoekstra <[email protected]>
@marwinbaumannsbp marwinbaumannsbp merged commit a1ffe67 into master Jul 30, 2024
7 checks passed
@marwinbaumannsbp marwinbaumannsbp deleted the upgrade-mcaf-workspace branch July 30, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants