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:
Automate your work, whether it’s for a hobby or your day job.
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.
Use Terraform and the AWS provider to provision and manage RDS instances, subnet and parameter groups, and configure an RDS read replica.
Become an expert on Terraform by practicing the details of resource and state management.
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.
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.
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.
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.
Extend Terraform by writing and sharing custom providers.
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.
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.
General availability of HashiCorp Consul-Terraform-Sync (CTS) 0.6 represents a key step in the maturity of our Network Infrastructure Automation (NIA) solution.
Cloud Development Kit for Terraform (CDKTF) 0.11 introduces an easier way to add providers to your application and improvements to the debugging process.
HashiCorp adopts the community-created HCL Extension for Visual Studio Code and adds HCL 2.0 support.