aztfmod / terraform-provider-azurecaf

Terraform provider for the Terraform platform engineering for Azure
MIT License
174 stars 93 forks source link

Add data source to retrieve environment variables #202

Closed LaurentLesle closed 1 year ago

LaurentLesle commented 1 year ago

PR Checklist


Description

Add support to retrieve an environment variable

data "azurecaf_environment_variable" "PAT" {
    name           = "PAT_TOKEN"
    fails_if_empty = true
    sensitive      = true
}

Does this introduce a breaking change

Testing

sonarcloud[bot] commented 1 year ago

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

BzSpi commented 1 year ago

Do you have any example of use case for this feature ? I'm curious :)