Create and manage traditional secrets like API keys, passwords, and configuration values with organized patterns and best practices.
- Creates basic secrets with proper organization
- Implements environment-specific secret patterns
- Organizes secrets by service and purpose
- Handles complex secret types (JSON, certificates, generated values)
- Demonstrates secure secret retrieval using ephemeral resources
- Infisical project already created (use
../project-bootstrap) - Terraform >= 1.10.0 installed
- Machine identity configured
-
Navigate to static-secrets:
cd terraform-examples/static-secrets -
Configure variables:
cp terraform.tfvars.example terraform.tfvars # Edit terraform.tfvars with your values -
Deploy:
terraform init terraform plan terraform apply