-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
r/s3_bucket_website_configuration: new resource #22648
Conversation
1e894e8
to
6623846
Compare
ffeacc8
to
dfd36ba
Compare
44a00a8
to
5ac8e8c
Compare
324e23e
to
fabfc78
Compare
18688a6
to
322647c
Compare
fabfc78
to
e31bce1
Compare
e31bce1
to
05daf4e
Compare
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.
Looks good! One question about the ordering of rules
}, | ||
}, | ||
"routing_rule": { | ||
Type: schema.TypeSet, |
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.
Is there any ordering to the redirect rules? E.g. if I create rules like
`docs/` => destinationA
`docs/images/` => destinationB
does the order in the generated JSON matter?
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.
Ooo that's a good question, and i want to say it does matter so this should really be a List 🤦♀️ ..also the aws_s3_bucket
resource's routing_rules
argument doesn't have any
DiffSuppressFunc: verify.SuppressEquivalentJSONDiffs,
which makes me think the List is more appropriate
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.
updated to TypeList in a90dcdc to follow what Cloud Control does in its schema 👍
05daf4e
to
aa309bf
Compare
Output of acceptance tests after a90dcdc:
|
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.
Looks good! 🚀
--- PASS: TestAccS3BucketWebsiteConfiguration_disappears (46.52s)
--- PASS: TestAccS3BucketWebsiteConfiguration_basic (52.00s)
--- PASS: TestAccS3BucketWebsiteConfiguration_RoutingRules_RedirectOnly (52.13s)
--- PASS: TestAccS3BucketWebsiteConfiguration_Redirect (52.22s)
--- PASS: TestAccS3BucketWebsiteConfiguration_update (71.78s)
--- PASS: TestAccS3BucketWebsiteConfiguration_RoutingRules_MultipleRules (72.15s)
--- PASS: TestAccS3BucketWebsiteConfiguration_RoutingRules_ConditionAndRedirect (97.63s)
a90dcdc
to
78e7b30
Compare
This functionality has been released in v4.0.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Relates #4418
Relates #20433
Output from acceptance testing: