github-actions
released this
13 Dec 15:56
·
42 commits
to refs/heads/main
since this release
Move to GitOps Config File @goruha (#29)
What
- Use configuration file
Why
- Make DRY workflows
Migrating from v1
to v2
v2
drop component-path
variable. Now it fetches from atmos.yaml
file automatically.
v2
moved variables from inputs
to atmos gitops config path ./.github/config/atmos-gitops.yaml
name |
---|
atmos-version |
atmos-config-path |
terraform-state-bucket |
terraform-state-table |
terraform-state-role |
terraform-plan-role |
terraform-apply-role |
terraform-version |
aws-region |
enable-infracost |
If you want the same behavior in v2
as inv1
you should create config ./.github/config/atmos-gitops.yaml
with the same variables as in v1
inputs.
- name: Terraform apply
uses: cloudposse/github-action-atmos-terraform-apply@v2
with:
atmos-gitops-config-path: ./.github/config/atmos-gitops.yaml
component: "foobar"
stack: "plat-ue2-sandbox"
same behaviour as
- name: Terraform apply
uses: cloudposse/github-action-atmos-terraform-apply@v1
with:
component: "foobar"
stack: "plat-ue2-sandbox"
component-path: "components/terraform/s3-bucket"
terraform-apply-role: "arn:aws:iam::111111111111:role/acme-core-gbl-identity-gitops"
terraform-state-bucket: "acme-core-ue2-auto-gitops"
terraform-state-role: "arn:aws:iam::999999999999:role/acme-core-ue2-auto-gitops-gha"
terraform-state-table: "acme-core-ue2-auto-gitops"
aws-region: "us-east-2"