#atlantis (2022-10)

atlantis

Discuss the Atlantis (<http://runatlantis.iorunatlantis.io>)

**Archive: ** https://archive.sweetops.com/atlantis/

2022-10-05

Release notes from atlantis avatar
Release notes from atlantis
10:18:35 PM

v0.19.9 What’s Changed build(deps): bump go.uber.org/zap from 1.21.0 to 1.22.0 by @dependabot in <a class=”issue-link js-issue-link” data-error-text=”Failed to load title” data-id=”1338912919” data-permission-text=”Title is private”…

Release v0.19.9 · runatlantis/atlantisattachment image

What’s Changed build(deps): bump go.uber.org/zap from 1.21.0 to 1.22.0 by @dependabot in #2448 Make required atlantis/apply status check work with mergeable by @rayterrill in #2436 build(deps): bu…

Dependabotattachment image

Automated dependency updates built into GitHub. Dependabot has 23 repositories available. Follow their code on GitHub.

jose.amengual avatar
jose.amengual

v0.19.9

What's Changed
build(deps): bump go.uber.org/zap from 1.21.0 to 1.22.0 by @dependabot in #2448
Make required atlantis/apply status check work with mergeable by @rayterrill in #2436
build(deps): bump golang from 1.17-alpine to 1.19.0-alpine by @dependabot in #2433
Allow manual PR number by @cep21 in #2465
ignore GitLab Draft MRs by @becjon in #2468
enable hostname (not only IP Address) on Metrics statsd host key by @kangaechu in #2429
Omit type declaration of vars by @estensen in #2476
build(deps): bump go.uber.org/zap from 1.22.0 to 1.23.0 by @dependabot in #2478
build(deps): bump github.com/microcosm-cc/bluemonday from 1.0.19 to 1.0.20 by @dependabot in #2487
build(deps): bump github.com/urfave/cli from 1.22.9 to 1.22.10 by @dependabot in #2488
deps: bump tf to 1.2.9 by @chenrui333 in #2499
Use proper http client for github v4 api by @ysoldak in #2479
deps: bump conftest to 0.34.0 by @chenrui333 in #2500
External Locking DB: Redis by @SudoSpartanDan in #2491
workflows: update runner to use ubuntu-22.04 by @chenrui333 in #2502
fix: allow requests to /api/* without authentication by @vincentgna in #2455
bug: Fix GitHub Markdown for added and deleted resources by @pauloconnor in #2418
Use single github v4 client by @ysoldak in #2480
feat: support parallel execution with order groups by @tufitko in #2403
lint: remove deprecated io/util package by @chenrui333 in #2503
Fixes for multienv step comment by @hatmarch in #2411
fix: Set mergeable correctly when branch protection doesn't require reviewers by @stasostrovskyi in #2470
Adding Redis TLS Option by @SudoSpartanDan in #2510
build(deps): bump github.com/spf13/viper from 1.12.0 to 1.13.0 by @dependabot in #2517
build(deps): bump runatlantis/atlantis-base from 2022.08.05 to 2022.09.08 by @dependabot in #2515
build(deps): bump github.com/moby/moby from 20.10.17+incompatible to 20.10.18+incompatible by @dependabot in #2516
lint: recursive gofmt by @chenrui333 in #2504
build(deps): bump golang from 1.19.0-alpine to 1.19.1-alpine by @dependabot in #2514
chore: Use hadolint to fix DL4006, SC2086 by @nitrocode in #2530
Adding Redis DB option by @Omicron7 in #2527
Fix: Error when enabling prometheus metrics by @albertollamaso in #2528
deps: bump tf to 1.3.0 by @andy-paine-numan in #2533
Delete previous plans on autoplan or atlantis plan by @giuli007 in #1633
docs: execution_order_group belongs to Project by @taiki45 in #2539
build(deps): bump actions/stale from 5 to 6 by @dependabot in #2540
deps: upgrade terraform to v1.3.1 by @chenrui333 in #2543
Getting working workspace from Terraform Cloud configuration by @cucxabong in #2432

2022-10-06

Release notes from atlantis avatar
Release notes from atlantis
09:18:41 PM

v0.20.0 Bump alpine to 3.16.2 (#2559)

Release v0.20.0 · runatlantis/atlantisattachment image

Bump alpine to 3.16.2 (#2559)

Bump alpine to 3.16.2 by mliljedahl · Pull Request #2559 · runatlantis/atlantisattachment image

Includes fixes for: CVE-2022-40674 CVE-2022-37434 Dockerfile also needs updating to build on new base image, after merging this.

jose.amengual avatar
jose.amengual

nope, not done yet….

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

@jose.amengual did you get the end to end implementation working with atmos ?

jose.amengual avatar
jose.amengual

This PR adds:

Custom event names to be passed as an option in case the webhook integration requires specific names.
It changes the value of X-GitHub-Delivery: to a UUID since that is the standard value set on github webhooks

jose.amengual avatar
jose.amengual

merged

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

So what’s left for the end to end implementation?

jose.amengual avatar
jose.amengual

tidy up the workflows

jose.amengual avatar
jose.amengual

workflow permission is an issue

Erik Osterman (Cloud Posse) avatar
Erik Osterman (Cloud Posse)

in terms of running the workflows from atlantis?

jose.amengual avatar
jose.amengual

no running but workflow permissions, who can apply a stack change in the prod stack?

jose.amengual avatar
jose.amengual

so I guess that can be a mix of codeowners and other atlantis config ( which I’m trying to figure out)

Release notes from atlantis avatar
Release notes from atlantis
04:28:34 AM

v0.20.0 What’s Changed Fix concurrency in atlantis-image workflow by @nitrocode in <a class=”issue-link js-issue-link” data-error-text=”Failed to load title” data-id=”1398485328” data-permission-text=”Title is private”…

Release v0.20.0 · runatlantis/atlantisattachment image

What’s Changed Fix concurrency in atlantis-image workflow by @nitrocode in #2556 Bump alpine to 3.16.2 by @mliljedahl in #2559 Full Changelog: v0.19.9…v0.20.0

2022-10-07

Release notes from atlantis avatar
Release notes from atlantis
04:38:40 PM

v0.20.0 What’s Changed Fix concurrency in atlantis-image workflow by @nitrocode in <a class=”issue-link js-issue-link” data-error-text=”Failed to load title” data-id=”1398485328” data-permission-text=”Title is private”…

Release v0.20.0 · runatlantis/atlantisattachment image

What’s Changed Fix concurrency in atlantis-image workflow by @nitrocode in #2556 Bump alpine to 3.16.2 by @mliljedahl in #2559 Full Changelog: v0.19.9…v0.20.0

2022-10-08

Release notes from atlantis avatar
Release notes from atlantis
06:28:39 PM

v0.20.1 What’s Changed Golang alpine update by @mliljedahl in <a class=”issue-link js-issue-link” data-error-text=”Failed to load title” data-id=”1400315403” data-permission-text=”Title is private” data-url=”https://github.com/runatlantis/atlantis/issues/2562“…

mliljedahl - Overview

mliljedahl has 12 repositories available. Follow their code on GitHub.

Golang alpine update by mliljedahl · Pull Request #2562 · runatlantis/atlantisattachment image

Base atlantis docker file of same alpine version with latest security updates.

Release notes from atlantis avatar
Release notes from atlantis
06:38:38 PM

v0.20.1 What’s Changed Golang alpine update by @mliljedahl in <a class=”issue-link js-issue-link” data-error-text=”Failed to load title” data-id=”1400315403” data-permission-text=”Title is private” data-url=”https://github.com/runatlantis/atlantis/issues/2562“…

jose.amengual avatar
jose.amengual

v0.20.1

What's Changed
Golang alpine update by @mliljedahl in #2562
Revert "Fix concurrency in atlantis-image workflow" by @jamengual in #2565
(README) Use join.slack.com instead of custom heroku app by @douglascayers in #2564
Updating to new base image by @jamengual in #2563
Fix server-configuration docs, missing newline by @erpel in #2567
build(deps): bump github.com/microcosm-cc/bluemonday from 1.0.20 to 1.0.21 by @dependabot in #2548
deps: bump terrform to 1.3.2 by @chenrui333 in #2569
docs: fill all command line flags not in the document, and more. by @chroju in #2568
docs: added GitHub app permission in #2380 by @chroju in #2572
Release 0.20.1 by @jamengual in #2571
1

2022-10-14

2022-10-16

2022-10-17

2022-10-19

Jurgen avatar

is there a way I can run any terraform command in the PR with atlantis? Better yet, can I do a partial apply?

jose.amengual avatar
jose.amengual

you can do atlantis plan -- -target module.alb.xxxx

Jurgen avatar

ah, cool!

Jurgen avatar

doesn’t seem to work, just did it all again

Jurgen avatar

but could be my custom workflows

jose.amengual avatar
jose.amengual

if you have custom workflows you will have to pass the extra args

Jurgen avatar

yeah

jose.amengual avatar
jose.amengual

Over a year later, but I wound up having to deal with this. My solution was by adding another workflow step to export the TF_CLI_ARGS env var:

- env:
    name: TF_CLI_ARGS
    command: echo $COMMENT_ARGS | tr ',' ' ' | sed -r 's/\\(.)/\1/g'
jose.amengual avatar
jose.amengual

you need to do the sed thing

Jurgen avatar

Thank you, you just answered like 5 questions. haha

1
Jurgen avatar

it doesn’t matter what I do, I keep getting

Error: Failed to parse command-line flags
> 
> flag provided but not defined: -target


Jurgen avatar

or

╷
> │ Error: Failed to parse command-line flags
> │ 
> │ flag provided but not defined: -target
> ╵
> ╷
> │ Error: Too many command line arguments
> │ 
> │ Expected at most one positional argument.
> ╵


jose.amengual avatar
jose.amengual

show me your custom workflow

jose.amengual avatar
jose.amengual

$TF_CLI_ARGS will be have to at the end

Jurgen avatar


“/atlantis-data/bin/terraform${ATLANTIS_TERRAFORM_VERSION}” plan “${varfiles[@]}”
/dev/null -input=false -refresh -no-color -compact-warnings -out “${PLANFILE}” “${comment_cli_args[@]}”

jose.amengual avatar
jose.amengual

echo this

jose.amengual avatar
jose.amengual

or that whole line

jose.amengual avatar
jose.amengual

to see id is adding an extra -

Jurgen avatar


/atlantis-data/bin/terraform1.3.3 plan -var-file=../env_vars/dev-xxxx-sydney-aws/adb2cs.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/apps-project-ping.txt -var-file=../env_vars/dev-xxxx-sydney-aws/apps.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/aws_auth.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/batch_data_pipeline.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/caching.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/clusters.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/config.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/data-pipeline-project-ping.txt -var-file=../env_vars/dev-xxxx-sydney-aws/databases.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/dns.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/domains.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/dynamodb.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/elasticsearch.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/environment-setup-project-ping.txt -var-file=../env_vars/dev-xxxx-sydney-aws/filesystems.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/front-door-project-ping.txt -var-file=../env_vars/dev-xxxx-sydney-aws/github_permissions.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/glue_jobs.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/istio.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/kafka.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/migration.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/monitoring.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/object_storage.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/operational-project-ping.txt -var-file=../env_vars/dev-xxxx-sydney-aws/operational.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/pagerduty.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/pagerduty_on_call_list.json -var-file=../env_vars/dev-xxxx-sydney-aws/pagerduty_schedule_start_date.json -var-file=../env_vars/dev-xxxx-sydney-aws/ses.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/streaming.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/swithces.tfvars -var-file=../env_vars/dev-xxxx-sydney-aws/whitelist_cidrs.tfvars -input=false -refresh -no-color -compact-warnings -out /atlantis-data/repos/deltatre-vxp/xxxx-terraform/2641/dev-xxxx-sydney-aws/apps/dev-xxxx-sydney-aws-apps-dev-xxxx-sydney-aws.tfplan ‘-target=module.applications[00].aws_kms_ciphertext.custom-ssl’

Jurgen avatar

or I can change the PR comment and get
-target ‘module.applications[00].aws_kms_ciphertext.custom-ssl’

Jurgen avatar

my pr comment is either
atlantis plan -p dev-xxxx-aws-apps – -target module.applications[“00”].aws_kms_ciphertext.custom-ssl

atlantis plan -p dev-xxxx-aws-apps – -target=module.applications[“00”].aws_kms_ciphertext.custom-ssl

Jurgen avatar

to me the ‘’ in the wrong spots are doing it, some weird escape/quoting stuff.

jose.amengual avatar
jose.amengual

can you do

atlantis plan -p dev-xxxx-aws-apps -- -target="module.applications["00"].aws_kms_ciphertext.custom-ssl"
1
Jurgen avatar

same deal unfortunately.
‘-target=module.applications[00].aws_kms_ciphertext.custom-ssl’

jose.amengual avatar
jose.amengual

can you just target module.applications? just to see if is the id “”

1
Jurgen avatar

its just put
-target=module.applications

Jurgen avatar

at the end, but same rror

jose.amengual avatar
jose.amengual

I never seen in my life so many var files

1
Jurgen avatar



Error: Failed to parse command-line flags
> 
> flag provided but not defined: -target
> 
> For more help on using this command, run:
>   terraform show -help
> save the output


jose.amengual avatar
jose.amengual

mmm

Jurgen avatar

execing into the pod and running it
-target=module.applications[“00”].aws_kms_ciphertext.custom-ssl

Jurgen avatar

works at the end, so its the ‘’ and weird things

Jurgen avatar

actually, wait.. that one, it planned but it did find my resouces

Jurgen avatar

‘-target=module.applications[“00”].aws_kms_ciphertext.custom-ssl’

Jurgen avatar

that worked, in the shell.. no problems

Jurgen avatar

anyway, going to have to play with this tomororw now. I ahve some meetings. Thanks for your help. I have some ideas.

jose.amengual avatar
jose.amengual

np

2022-10-26

jose.amengual avatar
jose.amengual

We are looking for companies that want to share their experience with Atlantis and success histories and that they might want to add their logo to the Atlantis page to showcase companies using Atlantis, I’m one of the contributors for the Atlantis project, please PM me

1
    keyboard_arrow_up