Complete terraform toolkit with generation and validation capabilities
93
Quality
93%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
A healthcare startup is building a patient records platform that requires strict data governance. The platform architect has asked you to provision the AWS storage layer using Terraform. The required resources are:
patient-records-prod) with versioning enabled, server-side encryption using a customer-managed KMS key, and a lifecycle policy to transition objects to STANDARD_IA storage class after 90 days and expire non-current versions after 365 days.The architect emphasizes that accidental deletion of any of these resources would constitute a serious compliance incident. The organization has been audited before and the auditor flagged an issue with how incomplete multipart uploads were handled in a previous project — the architect wants to make sure this is correctly addressed.
Generate the Terraform configuration for these resources. Include all standard files. Provide usage instructions after generating the files.