Get Started
Terraform is an open-source infrastructure as code tool that allows you to define and manage your infrastructure resources in a declarative way. This guide will help you get started with using the Quant Terraform provider to manage your QuantCDN resources.
Prerequisites
- Install Terraform (version 0.12.x or later)
- Have a QuantCDN account and API credentials
Installation
-
Install Terraform by following the official Install Terraform guide.
-
Create a new directory for your Terraform configuration:
-
Create a
main.tf
file in this directory to define your Terraform configuration.
Configuration
-
In your
main.tf
file, add the Quant provider block: -
Replace
"your_api_key_here"
with your actual QuantCDN API key. -
Replace
"your_organization_id_here"
with your actual QuantCDN organization ID.
Define Resources
Now you can start defining QuantCDN resources in your main.tf
file. For example, to create a new project:
Initialize and Apply
- Initialize the Terraform working directory:
- Review the planned changes:
- Apply the configuration:
Next Steps
- Explore the Quant Terraform Provider Documentation for more resources and data sources.
- Learn about Terraform state management to collaborate with team members.
- Set up remote state storage for better team collaboration and security.