Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace describe-config for atmos-get-setting, add optional cache and azure storage options #92

Merged
merged 122 commits into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
122 commits
Select commit Hold shift + click to select a range
ee8ae90
Be cloud agnostic
goruha Sep 18, 2024
1397d4f
Be cloud agnostic
goruha Sep 18, 2024
4fe650f
Be cloud agnostic
goruha Sep 18, 2024
74f7f7c
Be cloud agnostic
goruha Sep 18, 2024
88ea3ed
Be cloud agnostic
goruha Sep 18, 2024
5b31e4d
Be cloud agnostic
goruha Sep 18, 2024
fe84e83
Update atmos.yaml
goruha Sep 18, 2024
17c444e
Added readme
goruha Sep 19, 2024
39cbe91
Merge branch 'main' into aws-auth-optional
goruha Sep 25, 2024
19cf0a2
Adding azure, cache restore, and use atmos-get-setting
jamengual Oct 20, 2024
f8e62f7
Adding azure, cache restore, and use atmos-get-setting
jamengual Oct 20, 2024
b6cfcd7
Adding azure, cache restore, and use atmos-get-setting
jamengual Oct 20, 2024
3a3bc97
Adding azure, cache restore, and use atmos-get-setting
jamengual Oct 20, 2024
a2f075b
Fixing tests
jamengual Oct 20, 2024
efd8d58
Fixing tests
jamengual Oct 20, 2024
2f02e91
Fixing tests
jamengual Oct 20, 2024
018dfcb
Fixing tests
jamengual Oct 20, 2024
2b9c490
Fixing tests
jamengual Oct 20, 2024
fa9e842
Fixing tests
jamengual Oct 20, 2024
ebfcb2d
Fixing tests
jamengual Oct 20, 2024
832baf1
Fixing tests
jamengual Oct 20, 2024
9f0bd6c
Fixing tests
jamengual Oct 20, 2024
5733b2b
Fixing tests
jamengual Oct 20, 2024
e5fbce8
Fixing tests
jamengual Oct 20, 2024
043990e
Fixing tests
jamengual Oct 20, 2024
13d4a84
Fixing tests
jamengual Oct 20, 2024
cd5d072
Fixing tests
jamengual Oct 20, 2024
3cf49d1
Fixing tests
jamengual Oct 20, 2024
29cabff
Fixing tests
jamengual Oct 20, 2024
e049c96
Fixing tests
jamengual Oct 21, 2024
88bcf5b
Fixing tests
jamengual Oct 21, 2024
91fa2f7
Fixing tests
jamengual Oct 21, 2024
0a40bc1
Fixing tests
jamengual Oct 21, 2024
341ce9a
Fixing tests
jamengual Oct 21, 2024
a57d7ff
Fixing tests
jamengual Oct 21, 2024
cea520e
Fixing tests
jamengual Oct 21, 2024
f686108
Fixing tests
jamengual Oct 21, 2024
ef900a5
Fixing tests
jamengual Oct 22, 2024
0538861
Fixing tests
jamengual Oct 22, 2024
31f1b2d
Fixing tests
jamengual Oct 22, 2024
50b462a
Fixing tests
jamengual Oct 22, 2024
a530dab
Fixing tests
jamengual Oct 22, 2024
68a95f5
Fixing tests
jamengual Oct 23, 2024
10b62ea
Fixing tests
jamengual Oct 23, 2024
4248a8f
Fixing tests
jamengual Oct 23, 2024
b71a76e
Fixing tests
jamengual Oct 23, 2024
f252cd4
Fixing tests
jamengual Oct 23, 2024
8f37843
Testing one comment
jamengual Oct 24, 2024
6c5c416
Testing one comment
jamengual Oct 24, 2024
85c0751
Debugging infracost
jamengual Oct 24, 2024
a9660eb
Debugging infracost
jamengual Oct 24, 2024
0d98c2c
Testing one comment
jamengual Oct 24, 2024
f749255
Debugging infracost
jamengual Oct 24, 2024
2aa6a3a
Debugging infracost
jamengual Oct 24, 2024
285a636
Testing one comment
jamengual Oct 24, 2024
be3c6bd
Testing one comment
jamengual Oct 24, 2024
3cdae31
Updating docs
jamengual Oct 24, 2024
14c3abd
Adding pr-comment option
jamengual Oct 24, 2024
352fb64
Adding pr-comment option
jamengual Oct 24, 2024
db55431
Adding pr-comment option
jamengual Oct 24, 2024
6a00858
Adding pr-comment option
jamengual Oct 25, 2024
1d5c3cf
Adding pr-comment option
jamengual Oct 25, 2024
5900709
Adding pr-comment option
jamengual Oct 25, 2024
2bfe557
Adding pr-comment option
jamengual Oct 25, 2024
57b3925
Adding pr-comment option
jamengual Oct 25, 2024
4d6cc6f
Update README.md
jamengual Oct 25, 2024
3e9dbe6
Update README.yaml
jamengual Oct 25, 2024
ee5b586
Update .github/workflows/test-changes-exists-drift.yml
jamengual Oct 25, 2024
c86d33d
Update README.yaml
jamengual Oct 25, 2024
6fb0613
Update README.md
jamengual Oct 25, 2024
be29452
Update README.md
jamengual Oct 25, 2024
71b46a0
Update action.yml
jamengual Oct 25, 2024
685c070
Removing .terraform folder cache to avoid race condition of TF select
jamengual Oct 30, 2024
cc21edf
Update action.yml
jamengual Nov 1, 2024
31bc762
Update action.yml
jamengual Nov 1, 2024
70c1493
Update action.yml
jamengual Nov 1, 2024
53fcae3
Update action.yml
jamengual Nov 1, 2024
155575b
Update action.yml
jamengual Nov 1, 2024
e1ffe38
Update action.yml
jamengual Nov 1, 2024
7851d84
Addressing feedback
jamengual Nov 1, 2024
cae6d0e
Addressing feedback
jamengual Nov 1, 2024
999ae56
Addressing feedback
jamengual Nov 1, 2024
f137808
Addressing feedback
jamengual Nov 1, 2024
f4c6de5
Addressing feedback
jamengual Nov 1, 2024
2763f9a
Test with atmos integration in atmos.yaml and update atmos'
jamengual Nov 2, 2024
c34d1e7
Test with atmos integration in atmos.yaml and update atmos'
jamengual Nov 2, 2024
1f047e2
Test with atmos integration in atmos.yaml and update atmos'
jamengual Nov 2, 2024
17773db
Test with atmos integration in atmos.yaml and update atmos'
jamengual Nov 2, 2024
3f7c1ec
Test with atmos integration in atmos.yaml and update atmos'
jamengual Nov 2, 2024
84ad808
Test with atmos integration in atmos.yaml and update atmos'
jamengual Nov 2, 2024
cad8dc4
Fix tests
goruha Nov 27, 2024
0fddbec
Fix tests
goruha Nov 27, 2024
ee01d9a
Fix tests
goruha Nov 27, 2024
dacd107
Fix tests
goruha Nov 27, 2024
0d7223b
Fix tests
goruha Nov 27, 2024
ecc5119
Fix tests
goruha Nov 27, 2024
382b56a
Fix tests
goruha Nov 27, 2024
bbc98e1
Fix tests
goruha Nov 27, 2024
b4ee816
Fix tests
goruha Nov 27, 2024
d4ec526
Fix tests
goruha Nov 27, 2024
7a1ec12
Fix tests
goruha Nov 27, 2024
f167c6d
Fix tests
goruha Nov 28, 2024
1bf885a
Fix tests
goruha Nov 28, 2024
2dd630b
Fix tests
goruha Nov 28, 2024
7518cdd
Fix tests
goruha Nov 28, 2024
f41b414
Fix tests
goruha Nov 28, 2024
0227829
Fix tests
goruha Nov 28, 2024
de27192
Fix tests
goruha Nov 28, 2024
4bb0219
Fix tests
goruha Nov 28, 2024
f7474ab
Fix tests
goruha Nov 28, 2024
470f184
Fix tests
goruha Nov 28, 2024
1eb03ef
Fix tests
goruha Nov 28, 2024
abfb6cb
Fix tests
goruha Nov 28, 2024
1d74ddd
Reconsile with https://github.com/cloudposse/github-action-atmos-terr…
goruha Nov 28, 2024
8228d63
Update action.yml
goruha Nov 28, 2024
8c10c23
Define default artifacts storage to s3
goruha Nov 29, 2024
20edc26
Define default artifacts storage to s3
goruha Nov 29, 2024
6820ed8
Define default artifacts storage to s3
goruha Nov 29, 2024
b60ddbc
Define default artifacts storage to s3
goruha Nov 29, 2024
87a471a
Update README.yaml
goruha Nov 29, 2024
4ff435f
Update readme
goruha Nov 29, 2024
eed8ff9
Adding patch option to tfcmt when pr.comment is enabled
jamengual Nov 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ env:
permissions:
id-token: write
contents: read
actions: write
pull-requests: write

jobs:
test:
Expand All @@ -25,20 +27,34 @@ jobs:
- shell: bash
run: |
mkdir -p ${{ runner.temp }}
cp ./tests/terraform/atmos.yaml ${{ runner.temp }}/atmos.yaml
cp ./tests/terraform/atmos.yaml ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__INFRACOST_ENABLED__#false#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_REGION__#${{ env.AWS_REGION }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_REGION__#${{ env.AWS_REGION }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' ${{ runner.temp }}/atmos.yaml

for file in ./tests/terraform/stacks/catalog/*.yaml; do
if [ -f "$file" ]; then
sed -i -e "s#__INFRACOST_ENABLED__#false#g" "$file"
sed -i -e "s#__STORAGE_REGION__#${{ env.AWS_REGION }}#g" "$file"
sed -i -e "s#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g" "$file"
sed -i -e "s#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
sed -i -e "s#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
fi
done

- name: Plan Atmos Component
uses: ./
with:
component: "foobar"
stack: "plat-ue2-sandbox"
atmos-config-path: ${{ runner.temp }}
atmos-version: v1.81.0
atmos-version: 1.99.0
skip-checkout: true
22 changes: 18 additions & 4 deletions .github/workflows/test-changes-exists-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,28 @@ jobs:
run: |
mkdir -p ${{ runner.temp }}
cp ./tests/opentofu/atmos.yaml ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__INFRACOST_ENABLED__#false#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_REGION__#${{ env.AWS_REGION }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__INFRACOST_ENABLED__#false#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_REGION__#${{ env.AWS_REGION }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' ${{ runner.temp }}/atmos.yaml

for file in ./tests/opentofu/stacks/catalog/*.yaml; do
if [ -f "$file" ]; then
sed -i -e "s#__INFRACOST_ENABLED__#false#g" "$file"
sed -i -e "s#__STORAGE_REGION__#${{ env.AWS_REGION }}#g" "$file"
sed -i -e "s#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g" "$file"
sed -i -e "s#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
sed -i -e "s#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
fi
done


- name: Plan Atmos Component
id: current
Expand All @@ -50,7 +63,8 @@ jobs:
sha: ${{ github.sha }}
drift-detection-mode-enabled: true
atmos-config-path: ${{ runner.temp }}
atmos-version: 1.81.0
atmos-version: 1.99.0
skip-checkout: true

outputs:
result: ${{ steps.current.outcome }}
Expand Down
24 changes: 20 additions & 4 deletions .github/workflows/test-changes-exists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,31 @@ jobs:
- shell: bash
run: |
mkdir -p ${{ runner.temp }}
cp ./tests/terraform/atmos.yaml ${{ runner.temp }}/atmos.yaml
cp ./tests/terraform/atmos.yaml ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__INFRACOST_ENABLED__#false#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_REGION__#${{ env.AWS_REGION }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_REGION__#${{ env.AWS_REGION }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' ${{ runner.temp }}/atmos.yaml

for file in ./tests/terraform/stacks/catalog/*.yaml; do
if [ -f "$file" ]; then
sed -i -e "s#__INFRACOST_ENABLED__#false#g" "$file"
sed -i -e "s#__STORAGE_REGION__#${{ env.AWS_REGION }}#g" "$file"
sed -i -e "s#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g" "$file"
sed -i -e "s#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
sed -i -e "s#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
fi
done

cat ${{ runner.temp }}/atmos.yaml

- name: Plan Atmos Component
id: current
uses: ./
Expand All @@ -48,7 +63,8 @@ jobs:
stack: "plat-ue2-sandbox"
sha: ${{ github.sha }}
atmos-config-path: ${{ runner.temp }}
atmos-version: 1.81.0
atmos-version: 1.99.0
skip-checkout: false

outputs:
result: ${{ steps.current.outcome }}
Expand Down
22 changes: 18 additions & 4 deletions .github/workflows/test-failed-plan-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,28 @@ jobs:
run: |
mkdir -p ${{ runner.temp }}
cp ./tests/terraform/atmos.yaml ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__INFRACOST_ENABLED__#false#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_REGION__#${{ env.AWS_REGION }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__INFRACOST_ENABLED__#false#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_REGION__#${{ env.AWS_REGION }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' ${{ runner.temp }}/atmos.yaml

for file in ./tests/terraform/stacks/catalog/*.yaml; do
if [ -f "$file" ]; then
sed -i -e "s#__INFRACOST_ENABLED__#false#g" "$file"
sed -i -e "s#__STORAGE_REGION__#${{ env.AWS_REGION }}#g" "$file"
sed -i -e "s#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g" "$file"
sed -i -e "s#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
sed -i -e "s#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
fi
done


- name: Plan Atmos Component
id: current
Expand All @@ -50,7 +63,8 @@ jobs:
sha: ${{ github.sha }}
drift-detection-mode-enabled: true
atmos-config-path: ${{ runner.temp }}
atmos-version: 1.81.0
atmos-version: 1.99.0
skip-checkout: true

outputs:
result: ${{ steps.current.outcome }}
Expand Down
22 changes: 18 additions & 4 deletions .github/workflows/test-failed-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,28 @@ jobs:
run: |
mkdir -p ${{ runner.temp }}
cp ./tests/terraform/atmos.yaml ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__INFRACOST_ENABLED__#false#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_REGION__#${{ env.AWS_REGION }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__INFRACOST_ENABLED__#false#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_REGION__#${{ env.AWS_REGION }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' ${{ runner.temp }}/atmos.yaml

for file in ./tests/terraform/stacks/catalog/*.yaml; do
if [ -f "$file" ]; then
sed -i -e "s#__INFRACOST_ENABLED__#false#g" "$file"
sed -i -e "s#__STORAGE_REGION__#${{ env.AWS_REGION }}#g" "$file"
sed -i -e "s#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g" "$file"
sed -i -e "s#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
sed -i -e "s#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
fi
done


- name: Plan Atmos Component
id: current
Expand All @@ -49,7 +62,8 @@ jobs:
stack: "plat-ue2-sandbox"
sha: ${{ github.sha }}
atmos-config-path: ${{ runner.temp }}
atmos-version: 1.81.0
atmos-version: 1.99.0
skip-checkout: true

outputs:
result: ${{ steps.current.outcome }}
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/test-infra-cost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,28 @@ jobs:
run: |
mkdir -p ${{ runner.temp }}
cp ./tests/terraform/atmos.yaml ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__INFRACOST_ENABLED__#true#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_REGION__#${{ env.AWS_REGION }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__INFRACOST_ENABLED__#true#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_REGION__#${{ env.AWS_REGION }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' ${{ runner.temp }}/atmos.yaml

for file in ./tests/terraform/stacks/catalog/*.yaml; do
if [ -f "$file" ]; then
sed -i -e "s#__INFRACOST_ENABLED__#true#g" "$file"
sed -i -e "s#__STORAGE_REGION__#${{ env.AWS_REGION }}#g" "$file"
sed -i -e "s#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g" "$file"
sed -i -e "s#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
sed -i -e "s#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
fi
done


- name: Plan Atmos Component
id: current
Expand All @@ -51,7 +64,8 @@ jobs:
infracost-api-key: ${{ secrets.INFRACOST_API_KEY }}
debug: true
atmos-config-path: ${{ runner.temp }}
atmos-version: 1.81.0
atmos-version: 1.99.0
skip-checkout: true

outputs:
result: ${{ steps.current.outcome }}
Expand Down Expand Up @@ -164,8 +178,6 @@ jobs:
```

</details>



teardown:
runs-on: ubuntu-latest
Expand Down
22 changes: 18 additions & 4 deletions .github/workflows/test-no-changes-drift-more.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,28 @@ jobs:
run: |
mkdir -p ${{ runner.temp }}
cp ./tests/terraform/atmos.yaml ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__INFRACOST_ENABLED__#false#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_REGION__#${{ env.AWS_REGION }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__INFRACOST_ENABLED__#false#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_REGION__#${{ env.AWS_REGION }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g' ${{ runner.temp }}/atmos.yaml

for file in ./tests/terraform/stacks/catalog/*.yaml; do
if [ -f "$file" ]; then
sed -i -e "s#__INFRACOST_ENABLED__#false#g" "$file"
sed -i -e "s#__STORAGE_REGION__#${{ env.AWS_REGION }}#g" "$file"
sed -i -e "s#__STORAGE_BUCKET__#${{ secrets.TERRAFORM_STATE_BUCKET }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_TABLE__#${{ secrets.TERRAFORM_STATE_TABLE }}#g" "$file"
sed -i -e "s#__STORAGE_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g" "$file"
sed -i -e "s#__PLAN_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
sed -i -e "s#__APPLY_ROLE__#${{ secrets.TERRAFORM_PLAN_ROLE }}#g" "$file"
fi
done

- name: Plan Atmos Component
id: current
uses: ./
Expand All @@ -49,7 +62,8 @@ jobs:
sha: ${{ github.sha }}
drift-detection-mode-enabled: true
atmos-config-path: ${{ runner.temp }}
atmos-version: 1.81.0
atmos-version: 1.99.0
skip-checkout: true

outputs:
result: ${{ steps.current.outcome }}
Expand Down
Loading
Loading