-
-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dynamically create website inputs with the new provider and its colli… #142
Changes from all commits
61bdc50
8584b65
b801051
3e17e9c
5af915d
1831939
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -276,12 +276,7 @@ variable "object_lock_configuration" { | |
|
||
variable "website_inputs" { | ||
|
||
type = list(object({ | ||
index_document = string | ||
error_document = string | ||
redirect_all_requests_to = string | ||
routing_rules = string | ||
})) | ||
type = map(any) | ||
default = null | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could we keep the variable type the same for backwards compatibility? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, but as linked 'redirect_all_requests_to' is mutually exclusive with the other 3 options.. So, you are either setting 'redirect_all_requests_to' or 'index_document', 'error_document' and 'routing_rules'. Not sure how to handle that? I saw there is an experimental 'optional' feature but that is subject to change. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi, I would really appreciate some feedback to this, not sure how to handle it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the workaround has been to set unused options to null but maybe your way is the correct way forward, provided backwards compatibility is maintained There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this never worked in v2.0, I'm OK with having a breaking change here. Unfortunately, the "optional" feature is not usable (changes to it have been announced). Let's make this 2 inputs.
What do you think @jurgen-weber-deltatre and @nitrocode ? |
||
|
||
description = "Specifies the static website hosting configuration object." | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This cannot and should not be
for_each
, because you can only have one configuration per bucket