Declaring a resource that is not recognized

0 votes

Hello All,

I am new to Terraform and have written the following resource in my main.tf file: 

module "aws_s3_bucket" {

bucket = "s3bucketcopeland"

source = "terraform-aws-modules/s3-bucket/aws"

}
From my understanding this should setup the s3 bucket, however I keep getting this error message: 
│ A managed resource "aws_s3_bucket" "s3bucketcopeland" has not been declared in the root module.
Any ideas where I may be going wrong? 
Mar 8, 2023 in AWS by Brandon

edited 4 days ago 12 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP