Can you please generate Terraform code to create an S3 bucket, that is encrypted with…
- User
Can you please generate Terraform code to create an S3 bucket, that is encrypted with kms, and does not allow external access.
Assistant
Certainly! Below is an example of Terraform code that creates an S3 bucket with KMS encryption enabled and disallows external access. This code assumes you already have a KMS key set up in your AWS environment. Replace with your desired bucket name, and with the ARN of your KMS key.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.