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 data source azurecaf_name #206

Merged
merged 1 commit into from
Nov 4, 2022
Merged

Add data source azurecaf_name #206

merged 1 commit into from
Nov 4, 2022

Conversation

LaurentLesle
Copy link
Contributor

Issue-id

PR Checklist


  • I have read the CONTRIBUTING.MD instructions
  • I have changed the resourceDefinition.json
  • I have generated the resource model (there's a models_generated.go file in my PR)
  • I have updated the README.md#resource-status
  • I have checked to ensure there aren't other open Pull Requests for the same update/change?

Description

data "azurecaf_name" "rg_example" {
  name          = "demogroup"
  resource_type = "azurerm_resource_group"
  prefixes      = ["a", "b"]
  suffixes      = ["y", "z"]
  random_length = 5
  clean_input   = true
}

output "rg_example" {
  value = data.azurecaf_name.rg_example.result
}
data.azurecaf_name.rg_example: Reading...
data.azurecaf_name.rg_example: Read complete after 0s [id=a-b-rg-demogroup-sjdeh-y-z]

Changes to Outputs:
  + rg_example = "a-b-rg-demogroup-sjdeh-y-z"

Does this introduce a breaking change

  • YES
  • NO

Testing

image

@sonarcloud
Copy link

sonarcloud bot commented Nov 4, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@arnaudlh arnaudlh added the enhancement New feature or request label Nov 4, 2022
@arnaudlh arnaudlh changed the title Add data source azurecaf_name Add data source azurecaf_name Nov 4, 2022
@arnaudlh arnaudlh changed the base branch from main to 3_0 November 4, 2022 10:46
@arnaudlh arnaudlh changed the base branch from 3_0 to main November 4, 2022 10:46
Copy link
Member

@arnaudlh arnaudlh left a comment

Choose a reason for hiding this comment

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

LGTM

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
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants