terraform plan
command — it will show what changes you are going to make to the CDN settings.
4. Run the terraform apply
command to make changes to the CDN.
For detailed guidelines on how to create and manage CDN resources and resource options, check out the following sections.
use_next = true
use_next = false
origin_protocol = "MATCH"
origin_protocol = "HTTP"
origin_protocol = "HTTPS"
terraform plan
command — it will show what changes Terraform is going to make. If the code in the configuration file contains an error, the output will give a brief description of it.
terraform apply
command — it will make changes to the CDN. Terraform will ask you to confirm the action — enter “yes”.
Congratulations! The origin group and CDN resource have been created!
Now you need to configure a custom domain for the CDN resource and change the file paths so that they contain the custom domain instead of the origin domain. Use the following section for detailed instructions.
options {
string.
terraform plan
command — it will show what changes Terraform is going to make. If the code contains an error, the output will give a brief description of it.
terraform apply
command — it will make changes to the CDN. Terraform will ask you to confirm the action — enter “yes”.