sparse-intern-71089
06/21/2023, 12:44 PMsticky-bear-14421
06/21/2023, 1:05 PMsticky-bear-14421
06/21/2023, 1:06 PMsticky-bear-14421
06/21/2023, 1:06 PMbillowy-army-68599
billowy-army-68599
map[team]application-team
billowy-army-68599
export const defaultTags = config.requireObject<{ [key: string]: string }>("defaultTags");
I get
Outputs:
+ defaultTags: [
+ [0]: {
+ team: "application-team"
}
+ [1]: {
+ environment: "dev"
}
+ [2]: {
+ cost-center: "123456"
}
]
sticky-bear-14421
06/22/2023, 6:35 AM...
tags: {
...defaulttags,
Name: fqdn,
}
The complete error message is:
Diagnostics:
aws:route53:Zone (storeapplication):
error: aws:route53/zone:Zone resource 'applicationZone' has a problem: '' expected type 'string', got unconvertible type 'map[string]interface {}', value: 'map[team:application-team]'. Examine values at 'Zone.Tags["0"]'.
Exporting the defautlTags gives me the same result like you got:
Outputs:
+ defaultTags: [
+ [0]: {
+ team: "application-team"
}
+ [1]: {
+ environment: "dev"
}
+ [2]: {
+ cost-center: 123456
}
]
steep-toddler-94095
06/23/2023, 3:43 AMconfig:
aws:region: eu-central-1
my-application:defaultTags:
team: application-team
environment: dev
cost-center: "123456"
sticky-bear-14421
06/23/2023, 9:57 AM