aztfmod / terraform-provider-azurecaf

Terraform provider for the Terraform platform engineering for Azure
MIT License
176 stars 94 forks source link

Add data source to retrieve environment variables #202

Closed LaurentLesle closed 2 years ago

LaurentLesle commented 2 years 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 2 years 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 2 years ago

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