Closed plukevdh closed 3 months ago
I think you would have:
...
domain_name = "my.domain.here.io"
subdomains = ["testing"]
...
If you plan to route multiple sub-domains to this in the future, you can use:
...
domain_name = "*.my.domain.here.io"
subdomains = ["testing"]
...
That does appear to at least clear the errors in the sample code. Is that something that can be added to the migration document? It seems a change from previous behavior that may not be clear to others referencing that document rather than the primary readme (like myself).
I also need to verify that this change does not cause any additional changes to the existing AWS resources. Once verified, I'll either follow up or close this ticket. Thanks for the quick response @bryantbiggs
Looks like this does resolve my errors, so I'll close. It does appear the final output differs pretty significantly due to the resource reorganization under the hood, which I suppose is expected for a major version number change. Appreciate the quick feedback!
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.
Description
When attempting to update from < 5.0 to 5.0, I get new errors relating to route53 hosted zone discovery that did not exist prior to the update. It appears that the code to lookup the hosted zone for the gateway has changed when using the
domain_name
parameter when using single subdomained domains, i.e.,Zone domain:
my.domain.here.io
Subdomain/domain of the api gateway:testing.my.domain.here.io
Versions
Module version [Required]: 5.0
Terraform version: Terraform v1.3.5 or v1.7.4
Provider version(s):
provider registry.terraform.io/hashicorp/aws v5.52.0
Reproduction Code [Required]
Expected behavior
I should get a successful
terraform plan
back from this specifying a new API gateway creationActual behavior
Terminal Output Screenshot(s)
Additional context
If one comments out the module, clears the .terraform directories and re-inits/plans, the
aws_route53_zone
data module finds the zone just fine. My assumption is that the use of thedomain_name
var has changed without clear guidance on how to replicate previous behavior. Apologies if this is in the new documentation or migration guide, I couldn't find it.