Why terraform is ignoring a manually created s3 bucket

0 votes

Hi Guys,

I have created some s3 buckets manually in AWS. But when I run the terraform command, it is not able to find the bucket. It is showing the below output.

No changes. Infrastructure is up-to-date.
This means that Terraform did not detect any differences between your
configuration and real physical resources that exist. As a result, no
actions need to be performed.
Sep 10, 2020 in Terraform by MD
• 95,060 points
105 views

1 answer to this question.

0 votes

Hi@akhtar,

Terraform is a declarative language, you can define what resources you want and it will create and manage them for you. It can only manage resources it knows about within the state. To allow terraform to manage resources created manually, you can import them into the state file.

answered Sep 10, 2020 by akhtar
• 38,170 points

Related Questions In Terraform

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,523 views
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
482 views
0 votes
1 answer

How to create one s3 bucket using terraform?

Hi@akhtar, You can use aws_s3_bucket resources to create ...READ MORE

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

How to import manually created s3 bucket in Terraform?

Hi@akhtar, Terraform will not able to get the ...READ MORE

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

How to create a workspace in terraform?

Hi@MD, Terraform has a command named terraform workspace. ...READ MORE

answered Aug 16, 2020 in Terraform by akhtar
• 38,170 points
159 views
0 votes
1 answer

How to set an IAM policy for a project in GCP using Terraform?

Hi@akhtar, You can create a policy and give ...READ MORE

answered Sep 13, 2020 in Terraform by akhtar
• 38,170 points
162 views