v1.423.0
cloudposse-releaser
released this
18 Apr 00:08
·
151 commits
to refs/heads/main
since this release
fix: `api-gateway-rest-api` Default Value @milldr (#1022)
what
- Set default value for remote
acm
component reference in theapi-gateway-rest-api
component
why
- When the
acm
component doesnt exist, we want to use the value fromdns-delegated
instead like this
root_domain = coalesce(module.acm.outputs.domain_name, join(".", [
module.this.environment, module.dns_delegated.outputs.default_domain_name
]), module.dns_delegated.outputs.default_domain_name)
- However, if
acm
doesnt exist,module.acm.outputs
will be null:
│ Error: Attempt to get attribute from null value
│
│ on main.tf line 5, in locals:
│ 5: root_domain = coalesce(module.acm.outputs.domain_name, join(".", [
│ ├────────────────
│ │ module.acm.outputs is null
│
│ This value is null, so it does not have any attributes.
╵
exit status 1
references
- n/a