write terraform that creates an s3 bucket
- User
write terraform that creates an s3 bucket
- Assistant
Here is an example of Terraform code that creates an S3 bucket:
resource "aws_s3_bucket" "example" { bucket = "example.s3.amazonaws.com" }This code creates an S3 bucket named "example" with the domain "example.s3.amazonaws.com".
You can also specify other properties of the S3 bucket, such as its region, encryption, and versioning, by using the appropriate attributes. For example:
resource "aws_s3_bucket" "example" { bucket = "example.s3.amazonaws.com" region = "us-west-2" encryption = "SSE-S3" versioning = "Enabled" }
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.