Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

RoseSecurity
Copy link
Contributor

Why

  • This introduces examples of optional object attributes and comprehensive variable validation techniques. These updates help new users define more flexible variables with default values and ensure input correctness through validation blocks.

What

  • Updated documentation in writing-terraform-configurations.md to include:
    • Examples of optional object attributes in variables, showing how to provide defaults for non-required fields.
    • A new section on variable validation, including:
      • Basic validation for string variables (e.g., restricting environment names).
      • Validation for objects (e.g., restricting allowed database engines).
      • Validation for lists (e.g., ensuring all CIDR blocks are valid).

@RoseSecurity
Copy link
Contributor Author

If there's any additional changes or improvements I can make to this, feel free to call them out

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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.