cn-terraform / terraform-aws-s3-static-website

Terraform Module for AWS to host Static Website on S3
https://registry.terraform.io/modules/cn-terraform/s3-static-website/aws
Apache License 2.0
20 stars 33 forks source link

Error: missing provider provider["registry.terraform.io/hashicorp/aws"].main #76

Closed fritzalbrecht closed 10 months ago

fritzalbrecht commented 10 months ago

I keep getting this error when applying the plan. Happens after entering the name_prefix and website_domain_name variables.

fritzalbrecht commented 10 months ago

Figured it out, I had to add a provider block for each aws alias:

`provider "aws" { region = "us-east-1" alias = "main" }

provider "aws" { region = "us-east-1" alias = "acm_provider" }`

neilfulwiler commented 9 months ago

ran into the same thing, you can also just do

{
   aws.main = aws
   aws.acm_manager = aws
}

ie telling the module that both of those providers are just aws