-
-
Notifications
You must be signed in to change notification settings - Fork 839
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
Feat: Enable Replication Metrics #116
Conversation
719c247
to
0aada29
Compare
/test all |
1249064
to
fba6c3e
Compare
/test all |
examples/complete/replication.tf
Outdated
} | ||
} | ||
] : null | ||
s3_replication_rules = local.replication_enabled ? local.replication_rules : null |
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.
How come var.s3_replication_rules is no longer used ?
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.
that's my temp mess in tests nvm :)
43dae0b
to
040d727
Compare
/test all |
407dee6
to
001630e
Compare
This pull request is now in conflict. Could you fix it @max-lobur? 🙏 |
/test all |
/test all |
2 similar comments
/test all |
/test all |
e6bab0c
to
fd4de00
Compare
/test all |
64a4328
to
f565abf
Compare
/test all |
@max-lobur I took over this PR a little bit and made some changes to get it closer to what I think is ready to merge. I'm still running into the following: │ Error: Error putting S3 replication configuration: InvalidArgument: Metrics cannot contain an event threshold when ReplicationTime is not specified or Disabled
│ status code: 400, request id: [REDACTED], host id: [REDACTED]
│
│ with module.s3_bucket.aws_s3_bucket.default[0],
│ on ../../main.tf line 14, in resource "aws_s3_bucket" "default":
│ 14: resource "aws_s3_bucket" "default" {
│
╵
|
b6a9eb7
to
08fa92a
Compare
This Pull Request has been updated, so we're dismissing all reviews.
08fa92a
to
2ecfc34
Compare
/test all |
94453a2
to
8874e6f
Compare
96d02b6
to
54bb138
Compare
/test all |
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.
Couple comments, will finish reviewing tomorrow morning
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.
Requested some changes — see comments
main.tf
Outdated
content { | ||
minutes = 15 | ||
} |
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 looks as if we are hardcoding it. We should add an inline comment clarifying that it is not. Also, we need to set the enabled
attribute here.
content { | |
minutes = 15 | |
} | |
content { | |
status = "Enabled" | |
# we are not hardcoding this value — rather, this is the only value accepted by the provider, either implicitly or explicitly. | |
minutes = 15 | |
} |
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.
the link I posted has this
https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication-walkthrough-5.html
i added comment
Honestly i'm waiting until they re-release this whole api as it's a total nonsense
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.
It does not make sense to build any further around this until they redo the api
main.tf
Outdated
content { | ||
status = "Enabled" | ||
} |
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.
See other comment with the same suggestion.
content { | |
status = "Enabled" | |
} | |
content { | |
status = "Enabled" | |
# we are not hardcoding this value — rather, this is the only value accepted by the provider, either implicitly or explicitly. | |
minutes = 15 | |
} |
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.
minutes are ignored here
correct syntax is
metrics {
event_threshold {
minutes = 15
}
status = "Enabled"
}
but it's not supported by the latest aws provider, I don't know why
the event_threshold block throws an error. It works without it
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.
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.
I don't think that's the correct syntax
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.
Co-authored-by: Yonatan Koren <[email protected]>
This Pull Request has been updated, so we're dismissing all reviews.
/test all |
/test all |
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.
LGTM
what
AWS provider requirements update due to: hashicorp/terraform-provider-aws#21901
why
references
https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication-metrics.html