Getting Hashicorp Terraform Into Production
Getting Hashicorp Terraform Into Production
HashiCorp Terraform
into Production
/mtharpe
/in/michael-tharpe
01
Terraform Core
Overview
Terraform
Provides the foundation for cloud infrastructure
automation using infrastructure as code for provisioning
and compliance in the cloud operating model.
Use Cases:
Collaborative infrastructure as code
Compliance & Management (Enterprise)
Self-Service infrastructure (Enterprise)
GA
Adoption OR
Self-Service Infrastructure
Enterprise products
build on the guiding Compliance and Management
principle to address
Secrets, identity,
organizational and policy management
Infrastructure as Code for Cloud Migration
complexity and
requirements.
Free Team & Governance Business
Build Standardize Innovate
02
Terraform
Open Source
Terraform Open Source Workflow
terraform.io/downloads
registry.terraform.io 1
Public clouds
& Schedulers
2
Terraform Configs (HCL files)
main.tf, outputs.tf, terraform.tfvars, ...
3 state file
Terraform Init
Finds and installs providers Private
Datacenter
4 5
Terraform Plan Terraform Apply
Performs a dry-run Deploy/Configure
Terraform Open Source Considerations
Access Keys
Set as environment variables
or hard coded into a config file
No API
Manual execution, scripting,
or wrapped with another process
state file
State Files
Contain sensitive data
Need to be protected
OSS does not support collaboration
Terraform Open Source Workarounds
Access Keys
Set as environment variables
or hard coded into a config file
Dedicated VM or Container Various methods of secrets management
Access limited to a small team,
configs stored in a VCS, runs
wrapped in a script or baked into a
CI/CD process
state file
Obj Store
Terraform Open Source Doesn’t Scale
Each team has to create a custom workflow
Terraform OSS
on dedicated system + VCS
Public clouds
& Schedulers
-No centralized visibility
-No centralized operations
-No access controls
-No secrets management
Dev Teams XYZ
Security -No compliance enforcement
& Compliance
-Not acceptable for Enterprise
Private
Datacenter
Terraform OSS
Custom Process
03
Terraform
Cloud
Building on Open Source
Terraform Cloud
▪ Fully-managed Infrastructure as Code cloud service.
Infrastructure as
Code
Consistent
Workflow
Perform deployments in any cloud
and service, allowing organizations
to quickly leverage new technology
with the same learned, secured,
audited, and governed workflow.
Infrastructure State
State is Terraform’s
understanding of an
infrastructure
State files are managed by Terraform, providing
understanding of infrastructure as it is currently as
well as all previously provisioned configurations.
Remote state management with Terraform Cloud
encrypt state file storage.
VCS Connection
Terraform connects to the major VCS providers
allowing for automated versioning and running
of configuration files.
Compliance and
Governance
Hybrid-Cloud
Compliance &
Governance
Reduce risk with a central point for
automated checks on compliance, business
best practices, and even cost validation
across hundreds of unique providers.
CODE EDITOR
import "tfrun"
import "tfplan"
Self-Service
Infrastructure
Self-Service
Infrastructure
Increase productivity using a library of
infrastructure modules for technical and
non-technical end-users alike.
Modules
By creating hardened modules, operations teams
empower their organization to efficiently provision
vetted, secured, and standardized infrastructure.
Terraform Cloud
Adoption
Terraform Cloud Journey
BUILD STANDARDIZE INNOVATE
Terraform Cloud
Capabilities
Infrastructure as Code
✓ ✓ ✓
Create and provision infrastructure
Collaborative Infrastructure as Code
✓ ✓ ✓
Manage and share infrastructure
Team Management & Governance
✓ ✓
Manage & enforce teams & policies (as code)
Advanced Security, Compliance, and Governance
✓
SSO, Audit, Private Datacenter Networking
Self-Service Infrastructure
✓
Support for ServiceNow integration and workflow
Performance ✓
✓
Ability to scale across hosted runs and self-hosted agents (Option for 1 additional)
Support
Community ✓ ✓ ✓
Get Started Now
Test drive Terraform Cloud for Business with a FREE TRIAL via AWS Marketplace, and receive 60
days free on AWS.