Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Add suffix option to azurecaf_name resources #407

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

hyperfocus1337
Copy link
Contributor

Issue-id

PR Checklist


  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My code follows the code style of this project.
  • I ran lint checks locally prior to submission.
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Description

Adds the suffix option to the azurecaf_name for all resources. Related to PR aztfmod/terraform-azurerm-caf#1294 and issue aztfmod/terraform-azurerm-caf#1287.

Does this introduce a breaking change

  • YES
  • NO

Testing

Comment on lines +113 to +114
suffixes = var.suffix == "" ? null : [try(random_string.suffix.0.result, var.suffix)]
suffix_with_hyphen = var.suffix == "" ? null : format("%s", try(random_string.suffix.0.result, var.suffix))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure whether these two could also be useful. Just copied over the idea from the prefix.

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

Successfully merging this pull request may close these issues.

1 participant