terraform-aws-cloudfront
terraform-aws-cloudfront copied to clipboard
Error about origin blocks
Description
It gives an error about origin blocks required when I try to plan the code.
Versions
terraform { required_version = ">= 0.13.1"
required_providers { aws = { source = "hashicorp/aws" version = ">= 5.12.0"
}
Reproduction Code [Required]
Steps to reproduce the behavior: terraform plan
Expected behavior
compile satisfactory
Actual behavior
β Error: Insufficient origin blocks β β on main.tf line 54, in resource "aws_cloudfront_distribution" "this": β 54: resource "aws_cloudfront_distribution" "this" { β β At least 1 "origin" blocks are required.