Skip to content

Commit 648c1a5

Browse files
committed
Fixed usage of try when looking up domain outputs.
1 parent 1c9c427 commit 648c1a5

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.8.1 (Apr 24, 2026)
2+
* Fixed usage of `try` when looking up domain outputs.
3+
14
# 0.8.0 (Mar 26, 2026)
25
* Migrated domain delegator from IAM user to IAM role.
36
* Migrated from Terraform to OpenTofu.

domain.tf

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ locals {
99
domain_nameservers = data.ns_connection.domain.outputs.nameservers
1010
domain_delegator = data.ns_connection.domain.outputs.delegator
1111

12-
domain_access_key = try(local.domain_delegator["access_key"])
13-
domain_secret_key = try(local.domain_delegator["secret_key"])
14-
domain_assume_role = try(local.domain_delegator["role_arn"]) == "" ? [] : [
12+
domain_access_key = try(local.domain_delegator["access_key"], "")
13+
domain_secret_key = try(local.domain_delegator["secret_key"], "")
14+
domain_assume_role = try(local.domain_delegator["role_arn"], "") == "" ? [] : [
1515
{
1616
role_arn : local.domain_delegator["role_arn"]
1717
duration : local.domain_delegator["session_duration"]
@@ -34,10 +34,5 @@ provider "aws" {
3434
}
3535
}
3636

37-
assume_role {
38-
role_arn = local.domain_delegator["role_arn"]
39-
duration = local.domain_delegator["session_duration"]
40-
}
41-
4237
alias = "domain"
4338
}

0 commit comments

Comments
 (0)