Found a bug? Maybe our Slack Community can help.
Describe the Bug
A clear and concise description of what the bug is.
I have a certificate.tf
in which I have a domain + subject_alternative_names. This worked well until the aws provider (hashicorp/aws) version was changed to 4.12.0
Expected Behavior
A clear and concise description of what you expected to happen.
Terraform doesn't error while planning or applying
Steps to Reproduce
Steps to reproduce the behavior:
Requesting a certificate where the aws
provider is at version 4.12.0
will fail with an error. A snippet of my main.tf
where the aws provider is used is shown below:
...
required_providers {
aws = {
source = "hashicorp/aws"
version = "4.12.0"
}
http = {
source = "terraform-aws-modules/http"
version = "2.4.1"
}
}
...
The error:
╷
│ Error: reading ACM Certificate (2022-04-01 04:14:15.359 +0000 UTC): ValidationException: 1 validation error detected: Value '2022-04-01 04:14:15.359 +0000 UTC' at 'certificateArn' failed to satisfy constraint: Member must satisfy regular expression pattern: arn:[\w+=/,.@-]+:acm:[\w+=/,.@-]*:[0-9]+:[\w+=,.@-]+(/[\w+=,.@-]+)*
│
│ with module.acm_request_certificate.aws_acm_certificate_validation.default[0],
│ on .terraform/modules/acm_request_certificate/main.tf line 49, in resource "aws_acm_certificate_validation" "default":
│ 49: resource "aws_acm_certificate_validation" "default" {
If I change the version of the provider to be >= 4.11.0, terraform completes successfully.
Below is the TF configuration (domain and other data has been redacted):
Screenshots
If applicable, add screenshots or logs to help explain your problem.
Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas:
- OS: [e.g. Linux, OSX, WSL, etc]
- Version [e.g. 10.15]
Additional Context
Add any other context about the problem here.