https://github.com/josh/terraform-provider-sops
Terraform SOPS provider
https://github.com/josh/terraform-provider-sops
sops terraform terraform-provider
Last synced: 6 months ago
JSON representation
Terraform SOPS provider
- Host: GitHub
- URL: https://github.com/josh/terraform-provider-sops
- Owner: josh
- License: mit
- Created: 2025-12-30T19:25:08.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2026-01-14T03:14:55.000Z (6 months ago)
- Last Synced: 2026-01-14T05:25:43.006Z (6 months ago)
- Topics: sops, terraform, terraform-provider
- Language: Go
- Homepage:
- Size: 91.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# terraform-provider-sops
Terraform provider for encrypting and decrypting data with SOPS.
## Usage
```terraform
resource "sops_encrypt" "secrets" {
input = {
username = "josh"
password = "secret"
}
age_recipients = [
"age1j7ce327ke8t905hr4ve97xh4jr5ujauq59nxxkr3tnz9pty78p6q26hnd0"
]
output_type = "yaml"
output_indent = 2
}
output "secrets_yaml" {
value = sops_encrypt.secrets.output
}
```
```terraform
provider "sops" {
age_identity_path = "~/.config/sops/age/keys.txt"
}
data "sops_decrypt" "secrets" {
input = file("${path.module}/secrets.enc.yaml")
input_type = "yaml"
}
output "password" {
value = data.sops_decrypt.secrets.output.password
sensitive = true
}
```