Releases: cloudposse/github-action-atmos-terraform-select-components
v4.1.0
Add process functions option to Github Action parameters @lukekraus45 (#36)
## what * Added process-functions inputwhy
- When process-functions is false, we can avoid processing the yaml functions. Values retrieved via the !store commands don't always need to be retrieved when calling atmos describe affected so exposing this flag allows it to be toggled off.
references
v4.0.0
v3.1.0
Skip AWS auth if Gitops aws configuration empty in atmos settings @goruha (#34)
## what * Skip AWS auth if Gitops aws configuration empty in atmos settingsWhy
- Allow to skip AWS auth and use an external one
- Make the action cloud agnostic
Example
If atmos.yaml
contains
integrations:
github:
gitops:
opentofu-version: 1.7.3
terraform-version: 1.5.7
infracost-enabled: false
artifact-storage:
region: us-east-2
bucket: cptest-core-ue2-auto-gitops
table: cptest-core-ue2-auto-gitops-plan-storage
role: arn:aws:iam::461333128641:role/cptest-core-ue2-auto-gha-iam-gitops-gha
# here used to be
# role:
# plan: arn:aws:iam::582055374050:role/cptest-core-gbl-identity-planners
# apply: arn:aws:iam::582055374050:role/cptest-core-gbl-identity-gitops
matrix:
sort-by: .stack_slug
group-by: .stack_slug | split("-") | [.[0], .[2]] | join("-")
v3.0.0
feat: add IAM auth support (required for stack config templating as of atmos 1.86.2) @goruha (#33)
## what- Add IAM auth support
why
- IAM auth is required for stack config templating as of atmos
1.86.2
references
Break compatibility
- The action now locked on AWS, if you are using the action with another cloud provider pls use version
v3
🤖 Automatic Updates
v2.1.0
v2.0.1
Support OpenTofu @goruha (#29)
## what * Install opentofuwhy
- Gitops support OpenTofu
references
- DEV-2269 Update infra-live and infra-test to use opentofu
🐛 Bug Fixes
Fix Release @milldr (#30)
## what - Resolved TFLint complaints in tests - Remove release workflows that are intended for TF moduleswhy
- Fix the release
references
🤖 Automatic Updates
Update release workflow to allow pull-requests: write @osterman (#28)
## what - Update workflow (`.github/workflows/release.yaml`) to have permission to comment on PRwhy
- Add comment to PR when it is released
v2.0.0
Move `atmos-gitops-config.yaml` to `atmos.yaml` @goruha (#20)
what
- Move
atmos-gitops-config.yaml
toatmos.yaml
why
- Reduce configs files
references
-
https://cloudposse.atlassian.net/browse/DEV-1589
Migrating from
v1
tov2
The notable changes in
v2
are:v2
works only withatmos >= 1.63.0
v2
dropsinstall-terraform
input because terraform is not required for affected stacks callv2
dropsatmos-gitops-config-path
input and the./.github/config/atmos-gitops.yaml
config file. Now you have to use GitHub Actions environment variables to specify the location of theatmos.yaml
.
The following configuration fields now moved to GitHub action inputs with the same names
name atmos-version
atmos-config-path
The following configuration fields moved to the
atmos.yaml
configuration file.name YAML path in atmos.yaml
aws-region
integrations.github.gitops.artifact-storage.region
terraform-state-bucket
integrations.github.gitops.artifact-storage.bucket
terraform-state-table
integrations.github.gitops.artifact-storage.table
terraform-state-role
integrations.github.gitops.artifact-storage.role
terraform-plan-role
integrations.github.gitops.role.plan
terraform-apply-role
integrations.github.gitops.role.apply
terraform-version
integrations.github.gitops.terraform-version
enable-infracost
integrations.github.gitops.infracost-enabled
sort-by
integrations.github.gitops.matrix.sort-by
group-by
integrations.github.gitops.matrix.group-by
For example, to migrate from
v1
tov2
, you should have something similar to the following in youratmos.yaml
:./.github/config/atmos.yaml
# ... your existing configuration integrations: github: gitops: terraform-version: 1.5.2 infracost-enabled: false artifact-storage: region: us-east-2 bucket: cptest-core-ue2-auto-gitops table: cptest-core-ue2-auto-gitops-plan-storage role: arn:aws:iam::xxxxxxxxxxxx:role/cptest-core-ue2-auto-gitops-gha role: plan: arn:aws:iam::yyyyyyyyyyyy:role/cptest-core-gbl-identity-gitops apply: arn:aws:iam::yyyyyyyyyyyy:role/cptest-core-gbl-identity-gitops matrix: sort-by: .stack_slug group-by: .stack_slug | split("-") | [.[0], .[2]] | join("-")
.github/workflows/main.yaml
- name: Selected Components id: components uses: cloudposse/github-action-atmos-terraform-select-components@v2 with: atmos-config-path: ./rootfs/usr/local/etc/atmos/ jq-query: 'to_entries[] | .key as $parent | .value.components.terraform | to_entries[] | select(.value.settings.github.actions_enabled // false) | [$parent, .key] | join(",")'
This corresponds to the
v1
configuration (deprecated) below.The
v1
configuration file./.github/config/atmos-gitops.yaml
looked like this:atmos-version: 1.45.3 atmos-config-path: ./rootfs/usr/local/etc/atmos/ terraform-state-bucket: cptest-core-ue2-auto-gitops terraform-state-table: cptest-core-ue2-auto-gitops terraform-state-role: arn:aws:iam::xxxxxxxxxxxx:role/cptest-core-ue2-auto-gitops-gha terraform-plan-role: arn:aws:iam::yyyyyyyyyyyy:role/cptest-core-gbl-identity-gitops terraform-apply-role: arn:aws:iam::yyyyyyyyyyyy:role/cptest-core-gbl-identity-gitops terraform-version: 1.5.2 aws-region: us-east-2 enable-infracost: false sort-by: .stack_slug group-by: .stack_slug | split("-") | [.[0], .[2]] | join("-")
And the
v1
GitHub Action Workflow looked like this..github/workflows/main.yaml
- name: Selected Components id: components uses: cloudposse/github-action-atmos-terraform-select-components@v1 with: atmos-gitops-config-path: ./.github/config/atmos-gitops.yaml jq-query: 'to_entries[] | .key as $parent | .value.components.terraform | to_entries[] | select(.value.settings.github.actions_enabled // false) | [$parent, .key] | join(",")'
v1.2.0
Update cloudposse/github-action-setup-atmos action to v2 @renovate (#21)
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
cloudposse/github-action-setup-atmos | action | major | v1 -> v2 |
Release Notes
v1.1.1
Update cloudposse/actions action to v0.33.0 @renovate (#2)
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
cloudposse/actions | action | minor | 0.31.0 -> 0.33.0 |
Release Notes
cloudposse/actions (cloudposse/actions)
v0.33.0
v0.32.0
: 0.32.0 Update cloned actions
What's Changed
- Use args with status updater instead of env vars, update checkout to v3 by @Nuru in https://github.com/cloudposse/actions/pull/133
- Renamed access token by @zdmytriv in https://github.com/cloudposse/actions/pull/137
- Update cloned GitHub actions by @Nuru in https://github.com/cloudposse/actions/pull/136
- Update cloned actions to current by @Nuru in https://github.com/cloudposse/actions/pull/138
New Contributors
- @zdmytriv made their first contribution in https://github.com/cloudposse/actions/pull/137
Full Changelog: cloudposse/actions@0.31.0...0.32.0
Update dcarbone/install-jq-action action to v2 @renovate (#12)
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
dcarbone/install-jq-action | action | major | v1.0.1 -> v2.1.0 |
Release Notes
dcarbone/install-jq-action (dcarbone/install-jq-action)
v2.1.0
What's Changed
- Support running action inside containers by @TaxBusby in https://github.com/dcarbone/install-jq-action/pull/10
New Contributors
- @TaxBusby made their first contribution in https://github.com/dcarbone/install-jq-action/pull/10
Full Changelog: dcarbone/install-jq-action@v2.0.2...v2.1.0
v2.0.2
What's Changed
- use curl instead of wget to avoid download failure on macOS by @vaidyakhil in https://github.com/dcarbone/install-jq-action/pull/8
New Contributors
- @vaidyakhil made their first contribution in https://github.com/dcarbone/install-jq-action/pull/8
Full Changelog: dcarbone/install-jq-action@v2.0.1...v2.0.2
v2.0.1
What's Changed
- using macos as dl link os prefix in lieu of osx by @dcarbone in https://github.com/dcarbone/install-jq-action/pull/7
Full Changelog: dcarbone/install-jq-action@v2.0.0...v2.0.1
v2.0.0
What's Changed
- quick & dirty 1.7 support by @dcarbone in https://github.com/dcarbone/install-jq-action/pull/4
New Contributors
- @dcarbone made their first contribution in https://github.com/dcarbone/install-jq-action/pull/4
Full Changelog: dcarbone/install-jq-action@v1.0.1...v2.0.0
Update actions/checkout action to v4 @renovate (#11)
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
actions/checkout | action | major | v3 -> v4 |
Release Notes
actions/checkout (actions/checkout)
v4
Update hashicorp/setup-terraform action to v3 @renovate (#14)
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
hashicorp/setup-terraform | action | major | v2 -> v3 |
Release Notes
Update nick-fields/assert-action action to v2 @renovate (#19)
This PR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
nick-fields/assert-action | action | major | v1 -> v2 |