terraform

New Terraform Tutorials on HashiCorp Learn

From working with providers, to managing resources, to working with Terraform on AWS, we have a lot of new hands-on Terraform exercises to try.

There are a number of new tutorials for HashiCorp Terraform on the HashiCorp Learn platform this month. The topics include hosting a static website, detecting and fixing infrastructure drift, and publishing custom providers. Learn more about them below:

»Use Cases

Automate your work, whether it’s for a hobby or your day job.

Host a Static Website with S3 and Cloudflare

Use Terraform to set up a static website using AWS S3 as an object store and Cloudflare for DNS, SSL, and CDN. Create Cloudflare page rules to always redirect to HTTPS and temporarily redirect certain paths. The tutorial also gives you the option to use ACM for SSL certificate management and Cloudfront for CDN.

Static page creation with Cloudflare and Terraform tutorial.

Manage AWS RDS Instances

Use Terraform and the AWS provider to provision and manage RDS instances, subnet and parameter groups, and configure an RDS read replica.

»Build Your Terraform Skills

Become an expert on Terraform by practicing the details of resource and state management.

Query Data Sources

Learn how to query remote data sources with Terraform in this new tutorial on HashiCorp Learn. In this tutorial, you will provision a web application with Terraform and use data sources to configure it to support multiple AWS regions and availability zones.

Manage Resource Drift

Manually change an AWS instance managed by Terraform to create drift in your Terraform state file. Reconcile your state drift and import your resources while avoiding downtime.

Configuration drift tutorial for HashiCorp Terraform

Manage Resource Lifecycle

Update the configuration for an AWS instance and security group with lifecycle management blocks to prevent resource deletion, create resources before destroying them, and ignore changes to specific resource attributes.

Version Remote State with the Terraform Cloud API

Deploy an EC2 instance to a Terraform Cloud workspace and use the Terraform API to interact with and update state. Learn to interact with the Terraform Cloud API to download, version, package, and upload your state file to Terraform Cloud.

»Customize Providers

Extend Terraform by writing and sharing custom providers.

Add Import Capabilities to Your Custom Provider

Add import capability to a provider for a fictional coffee-shop application, HashiCups. This allows you to retrieve an existing resource and bring it into Terraform state, allowing Terraform to manage it. Implementing import capabilities is especially useful if you’re thinking about managing resources in brownfield environments with your custom Terraform provider.

Release and Publish a Provider to the Terraform Registry

Create a release for your custom Terraform provider using GoReleaser and GitHub Actions. Add a GPG key to the Terraform Registry to prepare for provider publishing.

Explore these tutorials and more on HashiCorp Learn.

For even more news about our latest tutorials being added to HashiCorp Learn, follow @HashiCorp on Twitter.


Sign up for the latest HashiCorp news

By submitting this form, you acknowledge and agree that HashiCorp will process your personal information in accordance with the Privacy Policy.