Open air3ijai opened 3 years ago
I have the same problem,but I didn't apply. Shouldn't custom source have origin_access_identity? Adding this config will cause my origin to be recreate.
same issue
Same here, now way to add different origin than S3.
IllegalUpdate: You must specify either a CustomOrigin or an S3Origin. You cannot specify both.
Describe the Bug
Cannot create a custom origin behind the default one, because
The given value is not suitable for child module variable "custom_origins" defined at .terraform/modules/cloudfront-cdn/variables.tf:327,1-26: element 0: attribute "s3_origin_config" is required.
Or when we adds3_origin_config
Error: error updating CloudFront Distribution (E2WW4FISAR8BSH): IllegalUpdate: You must specify either a CustomOrigin or an S3Origin. You cannot specify both.
Expected Behavior
We should be able to add a custom origin accordingly to the documentation
Steps to Reproduce
Add the following block to the main.tf
Steps to reproduce the behavior:
terraform plan
- get the error about misseds3_origin_config
optionEnvironment
Additional Context
Maybe something is missing in my configuration, and where we can find a working example with a custom origin?
Thank you!