Repository navigation
Update and enhance Atlantis Integration - #328
Conversation
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
| # https://www.runatlantis.io/docs/custom-workflows.html#custom-run-command | ||
| workflow_templates: | ||
| workflow-1: | ||
| plan: |
There was a problem hiding this comment.
Does plan support the env key for arbitrary environment variables?
There was a problem hiding this comment.
i'm not sure I'm following, can you provide an example of that?
(the workflows configs are just copied to the atlantis.yaml file verbatim if you use the repo level workflows)
There was a problem hiding this comment.
Oh ok so something like this would work then since atlantis supports? That means that this object is now an any?
workflow_templates:
workflow-1:
plan:
steps:
- env:
name: ENV_NAME
value: hard-coded-value
- env:
name: ENV_NAME_2
command: 'echo "dynamic-value-$(date)"'If so, perfect :)
There was a problem hiding this comment.
atmos does not touch the internals of the workflows definitions. You can def use any ENV vars in there that are set in the process (atmos does not check what's inside the workflows and does not set any ENV vars for it)
|
I skimmed the code. Looks okay to me. Might help if PePe Amengual (@jamengual) looks it over too. I'll read over the docs today and submit a review |
PePe Amengual (@jamengual) approved it a few days ago :) |
…e#3502) * fix: upgrade Node.js to 24.22.1 for October 2026 security releases Node.js 24.22.1 fixes CVE-2026-111497 (Brotli OOB write / RCE), CVE-2026-105483 and CVE-2026-106069 (TLS hostname verification bypasses), CVE-2026-105482 (dns.resolve NUL truncation), and several medium/low CVEs. - pkg/auth/providers/aws: bump the Node runtime Atmos downloads for the SAML Playwright driver from 24.18.0 to 24.22.1. - website/.nvmrc: move off EOL Node 25.1.0 (unpatched) to 24.22.1 LTS. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * fix(security): remediate 7 website Dependabot alerts Raise pnpm overrides to patched releases: - dompurify ^3.4.17 (cloudposse#327, cloudposse#328, cloudposse#329) - launch-editor ^2.14.2 (cloudposse#324, cloudposse#325, cloudposse#326) - follow-redirects ^1.16.1 (cloudposse#322, cloudposse#323) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * fix(security): bump Go to 1.26.10 for GO-2026-6809 Go 1.26.10 makes crypto/x509 distrust compromised intermediate certificates (CVE-2026-111943), which govulncheck reports Atmos calls. The Windows exception-reserve CI workaround is version-locked, so re-pin it to go1.26.10. golang/go#81238 is still open, and src/runtime/stack.go is byte-identical between 1.26.9 and 1.26.10, so the verified source SHA256 and the replacement are unchanged. Add a fix log covering this PR's Node, Go, and npm upgrades. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> * docs: say pnpm overrides in the security upgrades fix log Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix(security): remediate x/net and follow-redirects advisories Bump golang.org/x/net to v0.62.0 (GO-2026-6866, GO-2026-6860) and pin follow-redirects to 1.16.1 in the cdk-terraform example via an npm override (Dependabot 336, 337). Regenerate NOTICE. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix: tidy go.mod after merging origin/main Drop duplicate pre-merge requirements and the stale gocloud.dev pin comment (main moved to v0.46.0 and removed the pin), keeping the x/net security bumps. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix(plugins): bump auth-secrets to 1.0.1 for changed go.mod build input The x/net security bump changes go.mod, a declared build input for auth-secrets, so the plugin release check requires a version increase. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix(casts): stage screengrabs beside the output to avoid EXDEV The generator recorded casts into the system temp directory and then called os.replace into website/static, which fails with 'Invalid cross-device link' on CI runners where /tmp and the workspace are on different filesystems. Stage inside the output directory so the final move is always same-filesystem. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * fix: tidy go.mod after merging origin/main Remove the duplicate gocloud.dev requirement left by the merge. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
what
--formatand--fileflags toatmos describe componentcommandwhy
Allow configuring Atlantis Integration in the
settings.atlantissection in the YAML stack configs (instead, or in addition to, configuring it inintegrations.atlantisinatmos.yaml)Configuring the Atlantis Integration in the
settings.atlantissections in the stack configs has the following advantages:The
settingssection is a first class section in Atmos (similar tovars). It participates in deep-merging and in the inheritance chain. It can be defined and overridden at any level (organization/namespace, OU/tenant, region/environment, account/stage, base component, component). You can define the base settings at the org, tenant or account level, and then override some settings at the component level, making the whole configuration DRYWhen executing the
atmos atlantis generate repo-configcommand, you don't need to pass the--config-templateand--project-templateflags to specify which config and project templates to use. Instead, Atmos will get this information from thesettings.atlantissectionWhen executing the
atmos describe component <component> -s <stack>command, you will see the configured Atlantis Integration in the outputs. For example:If you configure the Atlantis Integration in the
settings.atlantissections in the stack configs, then thecommand
atmos describe affectedwill be able to use it and output the affected Atlantis projects in theatlantis_projectfield. For example:[ { "component": "infra/vpc", "component_type": "terraform", "component_path": "components/terraform/infra/vpc", "stack": "tenant1-ue2-dev", "atlantis_project": "tenant1-ue2-dev-infra-vpc", "affected": "component" }, { "component": "infra/vpc", "component_type": "terraform", "component_path": "components/terraform/infra/vpc", "stack": "tenant1-ue2-prod", "atlantis_project": "tenant1-ue2-prod-infra-vpc", "affected": "component" } ]Add
--affected-onlyflag toatmos atlantis generate repo-configcommandIf you want to generate the
atlantis.yamlfile before Atlantis can parse it, you can use the Dynamic Repo Config Generation feature of Atlantis. You can add aruncommand topre_workflow_hooks. The repo config will be generated right before Atlantis can parse it.To help with dynamic repo config generation, the
atmos atlantis generate repo-configcommand accepts the--affected-onlyflag. If set totrue, Atmos will generate Atlantis projects only for the Atmos components changed between two Git commits.If the
--affected-only=trueflag is passed, Atmos uses two different Git commits to produce a list of affected Atmos components and stacks and then generate theatlantis.yamlfile for the affected Atlantis projects only.Update
atmos describe affectedcommand to include theatlantis_projectattribute in the output of the affected components and stacks. The attribute shows the affected Atlantis projects between two diff Git commits (Note that this works only when Atlantis integration is configured in thesettings.atlantissections in the YAML stack config (see the description above)[ { "component": "infra/vpc", "component_type": "terraform", "component_path": "components/terraform/infra/vpc", "stack": "tenant1-ue2-dev", "atlantis_project": "tenant1-ue2-dev-infra-vpc", "affected": "component" }, { "component": "infra/vpc", "component_type": "terraform", "component_path": "components/terraform/infra/vpc", "stack": "tenant1-ue2-prod", "atlantis_project": "tenant1-ue2-prod-infra-vpc", "affected": "component" } ]Add
--formatand--fileflags toatmos describe componentcommand - useful to have when working with the command in GitHub actions and OPA validationrelated
atmos describe affecteddoes not show the project name if the atlantis integration is enabled #294atmos atlantis generate repo-config --affected-only#303