Skip to content

Instantly share code, notes, and snippets.

@SP3269
Last active July 18, 2024 03:43
Show Gist options
  • Save SP3269/ee384ae5d1a8545bab0126047d68eed0 to your computer and use it in GitHub Desktop.
Save SP3269/ee384ae5d1a8545bab0126047d68eed0 to your computer and use it in GitHub Desktop.
Output Linux environment from Terraform
# Output Linux environment from Terraform
provider "local" {}
data "local_file" "env" {
filename = "/proc/1/environ"
}
output "env" {
value = data.local_file.env.content
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment