-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
examples: athena terraform #29895
examples: athena terraform #29895
Conversation
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 is looking good. I wonder if we should simplify this by removing things like the kms keys and extra configuration of the s3 buckets and instead provide the minimal terraform required to get them up and running and add a note about it not being production ready.
I also recommend running this through a security linter such as tfsec or trivy to see if it returns anything (If you want a complete setup).
dd833c6
to
de3f74c
Compare
I think we should keep it secure by default.
Used |
@logand22 PTAL |
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.
Assuming this works and has been tested, it LGTM.
I would say that if you leave object lock and lifecycle configuration in I'd recommend adding comments to them as someone new to this wouldn't know that they aren't required.
examples/athena/athena.tf
Outdated
restrict_public_buckets = true | ||
} | ||
|
||
resource "aws_s3_bucket_lifecycle_configuration" "transient_storage_lifecycle" { |
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 won't cleanup versioned buckets. It will only mark them with a delete marker.
On the other hand I recommend removing this for simplification.
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.
removed it and added comment inside bucket that it's recommended
examples/athena/athena.tf
Outdated
restrict_public_buckets = true | ||
} | ||
|
||
resource "aws_s3_bucket_object_lock_configuration" "long_term_storage" { |
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.
Without some type of comment I'd say object locking with an arbitrary mode and time frame is more confusing then leaving it out.
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.
removed it and added comment inside bucket that it's recommended
de3f74c
to
126b0f4
Compare
@lxea @smallinsky PTAL |
126b0f4
to
5b76186
Compare
This PR adds terrafrom script necessary to bootstrap infra for self-hosted deployments of teleport.
Part of https://github.com/gravitational/teleport.e/issues/894
RFD: https://github.com/gravitational/teleport/blob/master/rfd/0118-scalable-audit-logs.md