terraform-aws-modules / terraform-aws-acm

Terraform module to create AWS ACM resources 🇺🇦
https://registry.terraform.io/modules/terraform-aws-modules/acm/aws
Apache License 2.0
182 stars 229 forks source link

Validation errors with AWS provider 4.0.0 #102

Closed gianpaolom closed 2 years ago

gianpaolom commented 2 years ago

Trying to run a terraform plan using AWS 4.0 provider, the command fails with multiple errors like:

 Error: AccessDenied: User: arn:aws:iam::<aws_profile>:user/<username> is not authorized to access this resource
│   status code: 403, request id: f1054e2b-9892-4889-8bf8-a81235a8d405
│ 
│   with module.acm.aws_route53_record.validation[5],
│   on .terraform/modules/acm/main.tf line 34, in resource "aws_route53_record" "validation":
│   34: resource "aws_route53_record" "validation" {

It works instead on latest 3.x 3.74

antonbabenko commented 2 years ago

I don't think this is related to this module but rather to the way you specify IAM credentials for Terraform to use. There were some changes in AWS provider 4.0 according to the CHANGELOG.

Please open an issue on https://discuss.hashicorp.com

github-actions[bot] commented 1 year ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.