How to create one s3 bucket using terraform

0 votes
Hi Guys,

I am new in terraform. I want to create one s3 bucket using terraform. Can anyone help me how can I do this?
Jun 12, 2020 in Terraform by akhtar
• 38,170 points
1,870 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use aws_s3_bucket resources to create one s3 bucket. I have attached one example for your reference.

resource "aws_s3_bucket" "bucketman" {
  bucket = "nadim72-bucket"
  acl = "public-read"

Hope this will help.

answered Jun 12, 2020 by MD
• 95,060 points

Related Questions In Terraform

0 votes
1 answer

How to create a folder inside S3 Bucket using Terraform code?

Hi@akhtar, You can create a folder at the ...READ MORE

answered Jul 23, 2020 in Terraform by MD
• 95,060 points
474 views
0 votes
1 answer

How to create one key in AWS using terraform?

Hi@akhtar, You can use aws_key_pair resource n terraform. ...READ MORE

answered Jun 11, 2020 in Terraform by MD
• 95,060 points
559 views
0 votes
1 answer
0 votes
1 answer

How to copy the content of an s3 bucket to another s3 bucket using Terraform?

Hi@akhtar, There is no resource that enables the ...READ MORE

answered Sep 10, 2020 in Terraform by MD
• 95,060 points
845 views
0 votes
1 answer
0 votes
1 answer

How to create one S3 bucket in AWS using Terraform?

Hi@akhtar, You need to set aws provider name ...READ MORE

answered Jul 23, 2020 in Terraform by MD
• 95,060 points
253 views
0 votes
1 answer

How to create a folder in S3 bucket using terraform?

Hi@akhtar, You can use aws_s3_bucket_object resource to create one ...READ MORE

answered Jun 11, 2020 in Terraform by MD
• 95,060 points
2,493 views