terraform-aws-cloudfront icon indicating copy to clipboard operation
terraform-aws-cloudfront copied to clipboard

Error about origin blocks

Open Fer00000 opened this issue 1 year ago β€’ 0 comments

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.

Fer00000 avatar Mar 22 '24 11:03 Fer00000