Re: [terraform] One CloudFront distribution and two Origins

824 views
Skip to first unread message

Teemu Matilainen

unread,
Mar 7, 2017, 2:02:35 AM3/7/17
to terrafo...@googlegroups.com
Hi,

You need to specify two origin blocks with different origin_ids. One block can only specify one *_origin_config .

Cheers,
  - Teemu


On Fri, Mar 3, 2017 at 5:16 PM, Allan Alvaro Gomes <allan...@jumia.com> wrote:
Hello,

 I want to create a CloudFront distribution with two Origins, one S3 based Origin from a bucket and other Custom Origin from a external domain url.

 The result is, I can create a S3 Origin but I can't add another origin to the same distribution,  Terraform says that I have to create one or other, not both
 aws_cloudfront_distribution.s3_distribution: IllegalUpdate: You must specify either a CustomOrigin or an S3Origin. You cannot specify both.
status code: 400, request id: 22e7cb11-0002-11e7-a667-433186d13be7

Is there any way to create two or more Origin in a simple distribution like the attached file?

Thanks!

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/633b2542-882e-4666-be15-4aa9c4fe25ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages