Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
6a362c0
Support plan-diff
goruha Aug 5, 2025
c7bffc1
Support plan-diff
goruha Aug 5, 2025
d6eacba
Support plan-diff
goruha Aug 5, 2025
4cc3c53
Support plan-diff
goruha Aug 5, 2025
c0b4079
Support plan-diff
goruha Aug 5, 2025
9eff5af
Support plan-diff
goruha Aug 5, 2025
0626b68
Support plan-diff
goruha Aug 5, 2025
6b5bd33
Support plan-diff
goruha Aug 5, 2025
592701b
Support plan-diff
goruha Aug 5, 2025
0a4aac2
Support plan-diff
goruha Aug 5, 2025
df29580
Support plan-diff
goruha Aug 5, 2025
48c772d
Support plan-diff
goruha Aug 5, 2025
98bffbd
Support plan-diff
goruha Aug 5, 2025
ad48f3b
Support plan-diff
goruha Aug 5, 2025
518c2fa
Support plan-diff
goruha Aug 5, 2025
3583afe
Support plan-diff
goruha Aug 5, 2025
3449d11
Support plan-diff
goruha Aug 5, 2025
b438a1a
Support plan-diff
goruha Aug 5, 2025
d71a443
Support plan-diff
goruha Aug 5, 2025
6412397
Support plan-diff
goruha Aug 5, 2025
19fbf4a
Support plan-diff
goruha Aug 5, 2025
def6367
Support plan-diff
goruha Aug 5, 2025
e2424b4
Support plan-diff
goruha Aug 5, 2025
6a7db59
Support plan-diff
goruha Aug 6, 2025
aa3a624
Support plan-diff
goruha Aug 6, 2025
3b60c37
Support plan-diff
goruha Aug 6, 2025
20acd8a
Support plan-diff
goruha Aug 6, 2025
6f21270
Support plan-diff
goruha Aug 6, 2025
04d87f6
Support plan-diff
goruha Aug 6, 2025
28f062c
Support plan-diff
goruha Aug 6, 2025
3715c87
Support plan-diff
goruha Aug 6, 2025
091777a
Support plan-diff
goruha Aug 6, 2025
214f390
Update outputs.tf
goruha Aug 6, 2025
c017b95
Update plat-ue2-sandbox.yaml
goruha Aug 6, 2025
c30dd0e
Update atmos.yaml
goruha Aug 6, 2025
79ca9d3
Support plan-diff
goruha Aug 6, 2025
93787eb
Merge branch 'plan-diff' of github.com:cloudposse/github-action-atmos…
goruha Aug 6, 2025
f1abd4a
Support plan-diff
goruha Aug 6, 2025
0295b2a
Support plan-diff
goruha Aug 6, 2025
5dd1cda
Support plan-diff
goruha Aug 6, 2025
c34a5a3
Support plan-diff
goruha Aug 6, 2025
d4d3e57
Support plan-diff
goruha Aug 6, 2025
e405e86
Support plan-diff
goruha Aug 6, 2025
b10529f
Support plan-diff
goruha Aug 6, 2025
4612f61
Support plan-diff
goruha Aug 6, 2025
e2d17ec
Added A/B testings
goruha Aug 6, 2025
43932a5
Added A/B testings
goruha Aug 6, 2025
ff1330a
Added A/B testings
goruha Aug 6, 2025
3e794cc
Added A/B testings
goruha Aug 6, 2025
347e9fb
Added A/B testings
goruha Aug 6, 2025
21dd50a
Added A/B testings
goruha Aug 6, 2025
12fde60
Added A/B testings
goruha Aug 6, 2025
445ae52
Added A/B testings
goruha Aug 6, 2025
fac998d
Added A/B testings
goruha Aug 6, 2025
87b3d0d
Added A/B testings
goruha Aug 6, 2025
425c666
Added A/B testings
goruha Aug 6, 2025
b08c319
Added A/B testings
goruha Aug 6, 2025
aaee2d6
Added A/B testings
goruha Aug 6, 2025
4b6b9ab
Added A/B testings
goruha Aug 6, 2025
922b52d
Added A/B testings
goruha Aug 6, 2025
5d7f729
Added A/B testings
goruha Aug 6, 2025
ec6fc13
Added A/B testings
goruha Aug 6, 2025
6af3d15
Added A/B testings
goruha Aug 6, 2025
270e534
Added A/B testings
goruha Aug 6, 2025
7fad9c1
Added A/B testings
goruha Aug 6, 2025
b00631c
Added A/B testings
goruha Aug 6, 2025
f3286e1
Added A/B testings
goruha Aug 7, 2025
ee6bf03
Added A/B testings
goruha Aug 7, 2025
5e3360e
Added A/B testings
goruha Aug 7, 2025
bc0fd97
Added A/B testings
goruha Aug 7, 2025
77def54
Added A/B testings
goruha Aug 7, 2025
5c13056
Added A/B testings
goruha Aug 7, 2025
ef6a0ea
Added A/B testings
goruha Aug 7, 2025
7b328d2
Added A/B testings
goruha Aug 7, 2025
b159b1d
Plan diff support skip init flag
goruha Aug 7, 2025
a77a472
Plan diff support skip init flag
goruha Aug 7, 2025
1daf8a7
Plan diff support skip init flag
goruha Aug 9, 2025
66051d3
Plan diff support skip init flag
goruha Aug 9, 2025
ae732ad
Plan diff support skip init flag
goruha Aug 9, 2025
d02b92f
Plan diff support skip init flag
goruha Aug 9, 2025
cdfa848
Plan diff support skip init flag
goruha Aug 9, 2025
a52c560
Plan diff support skip init flag
goruha Aug 9, 2025
3d1a1d6
Plan diff support skip init flag
goruha Aug 9, 2025
b10ccff
Plan diff support skip init flag
goruha Aug 9, 2025
db6d510
Plan diff support skip init flag
goruha Aug 9, 2025
ea424e5
Plan diff support skip init flag
goruha Aug 9, 2025
74b44d8
Plan diff support skip init flag
goruha Aug 9, 2025
d0a4215
Plan diff support skip init flag
goruha Aug 9, 2025
e92ee3c
Plan diff support skip init flag
goruha Aug 9, 2025
5d4cbcd
Plan diff support skip init flag
goruha Aug 9, 2025
cde3463
Plan diff support skip init flag
goruha Aug 9, 2025
cdbb1ba
Plan diff support skip init flag
goruha Aug 9, 2025
4af46ee
Plan diff support skip init flag
goruha Aug 9, 2025
708993d
Plan diff support skip init flag
goruha Aug 9, 2025
6a1fa21
Plan diff support skip init flag
goruha Aug 9, 2025
8dbed37
Plan diff support skip init flag
goruha Aug 9, 2025
a5d424d
Plan diff support skip init flag
goruha Aug 9, 2025
45e0598
Plan diff support skip init flag
goruha Aug 9, 2025
10a337b
Plan diff support skip init flag
goruha Aug 9, 2025
d0fd8c8
Plan diff support skip init flag
goruha Aug 9, 2025
df4c5f4
Plan diff support skip init flag
goruha Aug 9, 2025
18446eb
Plan diff support skip init flag
goruha Aug 9, 2025
e7f46be
Plan diff support skip init flag
goruha Aug 9, 2025
431ed61
Plan diff support skip init flag
goruha Aug 9, 2025
8c970cd
Plan diff support skip init flag
goruha Aug 9, 2025
438921d
Plan diff support skip init flag
goruha Aug 9, 2025
d8ce095
Plan diff support skip init flag
goruha Aug 9, 2025
3d052c9
Plan diff support skip init flag
goruha Aug 9, 2025
1839ef3
Plan diff support skip init flag
goruha Aug 9, 2025
57da58b
Plan diff support skip init flag
goruha Aug 9, 2025
5e4805c
Plan diff support skip init flag
goruha Aug 9, 2025
200afd8
Plan diff support skip init flag
goruha Aug 9, 2025
f009748
Plan diff support skip init flag
goruha Aug 9, 2025
137053b
Plan diff support skip init flag
goruha Aug 9, 2025
0cf2785
Plan diff support skip init flag
goruha Aug 9, 2025
6201877
Plan diff support skip init flag
goruha Aug 9, 2025
3ef368d
Plan diff support skip init flag
goruha Aug 10, 2025
2f033eb
Plan diff support skip init flag
goruha Aug 10, 2025
6bbb1b9
Plan diff support skip init flag
goruha Aug 10, 2025
6daa7ed
Plan diff support skip init flag
goruha Aug 10, 2025
f81da09
Plan diff support skip init flag
goruha Aug 10, 2025
9ab66e2
Plan diff support skip init flag
goruha Aug 10, 2025
67a9e87
Plan diff support skip init flag
goruha Aug 10, 2025
16d005b
Plan diff support skip init flag
goruha Aug 10, 2025
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
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: "Test - Atmos Pro Enabled"
name: "Atmos Pro Integration Tests"

on:
workflow_dispatch: {}

pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
inputs:
ref:
description: "The fully-formed ref of the branch or tag that triggered the workflow run"
required: false
type: string
sha:
description: "The sha of the commit that triggered the workflow run"
required: false
type: string

env:
AWS_REGION: us-east-2
Expand All @@ -29,9 +35,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
ref: ${{ inputs.ref }}

- name: Setup Atmos Test Config
id: env
shell: bash
run: |
mkdir -p ${{ runner.temp }}
Expand All @@ -44,18 +51,23 @@ jobs:
sed -i -e 's#__PLAN_ROLE__#${{ secrets.TERRAFORM_APPLY_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__APPLY_ROLE__#${{ secrets.TERRAFORM_APPLY_ROLE }}#g' ${{ runner.temp }}/atmos.yaml

echo "seed=${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}-${{ matrix.platform }}" >> $GITHUB_OUTPUT

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

- name: Plan Atmos Component
uses: cloudposse/github-action-atmos-terraform-plan@v4
uses: cloudposse/github-action-atmos-terraform-plan@v5
with:
component: "foobar-atmos-pro"
stack: "plat-ue2-sandbox"
atmos-config-path: ${{ runner.temp }}
sha: ${{ inputs.sha }}
env:
TF_VAR_seed: ${{ steps.env.outputs.seed }}

- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
ref: ${{ inputs.ref }}

- name: Wait 15 sec to wait s3 bucket would be consistent (read after write consistency)
shell: bash
Expand All @@ -69,8 +81,10 @@ jobs:
component: "foobar-atmos-pro"
stack: "plat-ue2-sandbox"
atmos-config-path: ${{ runner.temp }}
atmos-version: ">= 1.174.0"

sha: ${{ inputs.sha }}
env:
TF_VAR_seed: ${{ steps.env.outputs.seed }}

outputs:
result: ${{ steps.current.outputs.status }}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
name: "Integration Tests"

on:
workflow_dispatch: {}

pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
inputs:
ref:
description: "The fully-formed ref of the branch or tag that triggered the workflow run"
required: false
type: string
sha:
description: "The sha of the commit that triggered the workflow run"
required: false
type: string

env:
AWS_REGION: us-east-2
Expand All @@ -26,9 +32,10 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
ref: ${{ inputs.ref }}

- shell: bash
id: env
run: |
mkdir -p ${{ runner.temp }}
cp ./tests/${{ matrix.platform }}/atmos.yaml ${{ runner.temp }}/atmos.yaml
Expand All @@ -41,21 +48,28 @@ jobs:
sed -i -e 's#__PLAN_ROLE__#${{ secrets.TERRAFORM_APPLY_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__APPLY_ROLE__#${{ secrets.TERRAFORM_APPLY_ROLE }}#g' ${{ runner.temp }}/atmos.yaml

echo "seed=${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}-${{ matrix.platform }}" >> $GITHUB_OUTPUT

- name: Plan Atmos Component
uses: cloudposse/github-action-atmos-terraform-plan@v4
with:
component: "foobar"
stack: "plat-ue2-sandbox"
atmos-config-path: ${{ runner.temp }}
debug: true
sha: ${{ inputs.sha }}
env:
TF_VAR_seed: ${{ steps.env.outputs.seed }}


- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
ref: ${{ inputs.ref }}

- name: Wait 15 sec to wait s3 bucket would be consistent (read after write consistency)
- name: Wait 60 sec to wait s3 bucket would be consistent (read after write consistency)
shell: bash
run: |
sleep 15;
sleep 60;

- name: Apply Atmos Component
uses: ./
Expand All @@ -64,3 +78,7 @@ jobs:
stack: "plat-ue2-sandbox"
atmos-config-path: ${{ runner.temp }}
debug: true
sha: ${{ inputs.sha }}
env:
TF_VAR_seed: ${{ steps.env.outputs.seed }}

83 changes: 83 additions & 0 deletions .github/workflows/test-plan_diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: "Integration Tests - Plan diff"

on:
workflow_dispatch:
inputs:
ref:
description: "The fully-formed ref of the branch or tag that triggered the workflow run"
required: false
type: string
sha:
description: "The sha of the commit that triggered the workflow run"
required: false
type: string

env:
AWS_REGION: us-east-2


# Permissions required for assuming AWS identity
permissions:
id-token: write
contents: read

jobs:
test:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
max-parallel: 1
fail-fast: false # Don't fail fast to avoid locking TF State
matrix:
platform: [terraform, opentofu]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

- shell: bash
run: |
mkdir -p ${{ runner.temp }}
cp ./tests/${{ matrix.platform }}/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_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_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__PLAN_ROLE__#${{ secrets.TERRAFORM_APPLY_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__APPLY_ROLE__#${{ secrets.TERRAFORM_APPLY_ROLE }}#g' ${{ runner.temp }}/atmos.yaml

echo "seed=${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}-${{ matrix.platform }}" >> $GITHUB_OUTPUT

- name: Plan Atmos Component
uses: cloudposse/github-action-atmos-terraform-plan@v4
with:
component: "foobar-plan-diff"
stack: "plat-ue2-sandbox"
atmos-config-path: ${{ runner.temp }}
debug: true
sha: ${{ inputs.sha }}
env:
TF_VAR_seed: ${{ steps.env.outputs.seed }}-a

- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

- name: Wait 15 sec to wait s3 bucket would be consistent (read after write consistency)
shell: bash
run: |
sleep 15;

- name: Apply Atmos Component
uses: ./
with:
component: "foobar-plan-diff"
stack: "plat-ue2-sandbox"
atmos-config-path: ${{ runner.temp }}
debug: true
sha: ${{ inputs.sha }}
env:
TF_VAR_seed: ${{ steps.env.outputs.seed }}-b

69 changes: 69 additions & 0 deletions .github/workflows/test-plan_fail.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: "Integration Tests - Plan Fail"

on:
workflow_dispatch:
inputs:
ref:
description: "The fully-formed ref of the branch or tag that triggered the workflow run"
required: false
type: string
sha:
description: "The sha of the commit that triggered the workflow run"
required: false
type: string

env:
AWS_REGION: us-east-2


# Permissions required for assuming AWS identity
permissions:
id-token: write
contents: read

jobs:
test:
runs-on: ubuntu-latest
continue-on-error: true
strategy:
max-parallel: 1
fail-fast: false # Don't fail fast to avoid locking TF State
matrix:
platform: [terraform, opentofu]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

- shell: bash
id: env
run: |
mkdir -p ${{ runner.temp }}
cp ./tests/${{ matrix.platform }}/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_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_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__PLAN_ROLE__#${{ secrets.TERRAFORM_APPLY_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__APPLY_ROLE__#${{ secrets.TERRAFORM_APPLY_ROLE }}#g' ${{ runner.temp }}/atmos.yaml

echo "seed=${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}-${{ matrix.platform }}" >> $GITHUB_OUTPUT

- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

- name: Apply Atmos Component
uses: ./
with:
component: "foobar-plan-fail"
stack: "plat-ue2-sandbox"
atmos-config-path: ${{ runner.temp }}
plan-storage: false
debug: true
sha: ${{ inputs.sha }}
env:
TF_VAR_seed: ${{ steps.env.outputs.seed }}

68 changes: 68 additions & 0 deletions .github/workflows/test-plan_storage_disabled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: "Integration Tests - Plan Storage disabled"

on:
workflow_dispatch:
inputs:
ref:
description: "The fully-formed ref of the branch or tag that triggered the workflow run"
required: false
type: string
sha:
description: "The sha of the commit that triggered the workflow run"
required: false
type: string

env:
AWS_REGION: us-east-2


# Permissions required for assuming AWS identity
permissions:
id-token: write
contents: read

jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
fail-fast: false # Don't fail fast to avoid locking TF State
matrix:
platform: [terraform, opentofu]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

- shell: bash
id: env
run: |
mkdir -p ${{ runner.temp }}
cp ./tests/${{ matrix.platform }}/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_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_ROLE__#${{ secrets.TERRAFORM_STATE_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__PLAN_ROLE__#${{ secrets.TERRAFORM_APPLY_ROLE }}#g' ${{ runner.temp }}/atmos.yaml
sed -i -e 's#__APPLY_ROLE__#${{ secrets.TERRAFORM_APPLY_ROLE }}#g' ${{ runner.temp }}/atmos.yaml

echo "seed=${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}-${{ matrix.platform }}" >> $GITHUB_OUTPUT

- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}

- name: Apply Atmos Component
uses: ./
with:
component: "foobar-plan-storage"
stack: "plat-ue2-sandbox"
atmos-config-path: ${{ runner.temp }}
plan-storage: false
debug: true
sha: ${{ inputs.sha }}
env:
TF_VAR_seed: ${{ steps.env.outputs.seed }}

Loading
Loading