Secrets Management with AWS Secrets Manager and Terraform
Focus on Terraform secret-handling patterns on AWS using Secrets Manager, state inspection, and ephemeral-friendly workflows instead of unrelated Vault transit features.

Lab Overview
Create and version AWS Secrets Manager secrets with Terraform, inspect how data sources expose plaintext values through state, and finish with Terraform patterns that reduce persistence of sensitive data.
You'll learn to:
- Create and version a secret in AWS Secrets Manager with Terraform
- Read a secret through a Terraform data source and inspect where the value is persisted
- Explain why `sensitive = true` redacts output but does not encrypt state
- Use Terraform's newer secret-handling patterns to keep sensitive values out of state
- Compare AWS-native secrets workflows with the broader guidance taught in section 12
What You'll Learn
Create an AWS Secrets Manager secret and add a secret version with Terraform
Read an existing secret with a Terraform data source and observe the value in state
Explain why sensitive outputs do not prevent secret persistence in state
Apply a safer Terraform pattern for secrets so the plaintext value is not persisted
Prerequisites
Terraform state management fundamentals
Basic familiarity with AWS IAM and Secrets Manager
Technologies Covered
Part of a Course
This lab is part of the Secrets Management with AWS Secrets Manager and Terraform course
View All CoursesChoose your plan
Simple, Transparent Pricing
Unlock full access to TeKanAid courses, labs, and bootcamps
Pro
Course content without labs
Renews automatically. Cancel anytime.
- Full access to all courses
- Progress tracking
- Certificate of completion
- Community access
- Bootcamp participation
- New content access
Premium
Full access with hands-on labs
Renews automatically. Cancel anytime.
- Everything in Pro
- Unlimited hands-on labs
- Lab AI Assistant
- Accelerator bootcamps with live office hours
- Priority support
Prefer a single course?
Purchase individual courses for a one-time fee of $79.00. Full access to course content, quizzes, certificates, and community features — lab access is not included.
Browse CoursesFree Content Available
Explore our platform with free lessons, quizzes, and lab previews. No credit card required to get started. On the courses page, use the Access filter and select Free to find all available free content.
Browse Free ContentReady to Get Started?
Start this hands-on lab and build real-world Platform Engineering skills
Get Access Now