v1.86.1
cloudposse-releaser
released this
15 Aug 20:24
·
48 commits
to refs/heads/main
since this release
Improve logging for the template function `atmos.Component` @aknysh (#672)
## what- Improve logging for the template function
atmos.Component
- Update
Golang
to the latest version1.23
why
-
When the environment variable
ATMOS_LOGS_LEVEL
is set toTrace
, the template functionsatmos.Component
andatmos.GomplateDatasource
will log the execution flow and the results of template evaluation - useful for debuggingATMOS_LOGS_LEVEL=Trace atmos terraform plan <component> -s <stack>
This PR adds more debugging information and shows the results of the atmos.Component
execution, and shows if the result was found in the cache:
Found component 'template-functions-test' in the stack 'tenant1-ue2-prod' in the stack manifest 'orgs/cp/tenant1/prod/us-east-2'
ProcessTmplWithDatasources(): template 'all-atmos-sections' - evaluation 1
Converting the variable 'test_list' with the value
[
"list_item_1",
"list_item_2",
"list_item_3"
]
from JSON to 'Go' data type
Converted the variable 'test_list' with the value
[
"list_item_1",
"list_item_2",
"list_item_3"
]
from JSON to 'Go' data type
Result: [list_item_1 list_item_2 list_item_3]
Converting the variable 'test_map' with the value
{
"a": 1,
"b": 2,
"c": 3
}
from JSON to 'Go' data type
Converted the variable 'test_map' with the value
{
"a": 1,
"b": 2,
"c": 3
}
from JSON to 'Go' data type
Result: map[a:1 b:2 c:3]
Converting the variable 'test_label_id' with the value
"cp-ue2-prod-test"
from JSON to 'Go' data type
Converted the variable 'test_label_id' with the value
"cp-ue2-prod-test"
from JSON to 'Go' data type
Result: cp-ue2-prod-test
Executed template function 'atmos.Component(template-functions-test, tenant1-ue2-prod)'
'outputs' section:
test_label_id: cp-ue2-prod-test
test_list:
- list_item_1
- list_item_2
- list_item_3
test_map:
a: 1
b: 2
c: 3
Executing template function 'atmos.Component(template-functions-test, tenant1-ue2-prod)'
Found the result of the template function 'atmos.Component(template-functions-test, tenant1-ue2-prod)' in the cache
'outputs' section:
test_label_id: cp-ue2-prod-test
test_list:
- list_item_1
- list_item_2
- list_item_3
test_map:
a: 1
b: 2
c: 3
add install instructions for atmos on windows/scoop @dennisroche (#649)
## whatadd option/documentation for installing atmos
using scoop.sh on windows.
scoop install atmos
scoop
manifests will check GitHub releases and automatically update. no additional maintenance required for anyone 🥳.
why
needed an easy way for my team to install atmos