#atlantis (2020-10)

atlantis

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

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

2020-10-01

joshmyers avatar
joshmyers

Probably want to squash some of those commits

jose.amengual avatar
jose.amengual

nothing secret in there but actually I do not know how to delete some

joshmyers avatar
joshmyers

Rebase?

jose.amengual avatar
jose.amengual

I tried, it became a huge mess

jose.amengual avatar
jose.amengual

I should have done it before I created the PR

2020-10-13

Callum Robertson avatar
Callum Robertson

Hey all - I have a couple of questions for this channel around management of Atlantis.

  1. Right now we’re the Terragrunt IAC repo pattern for all of our infrastructure. This has expanded quite quickly due to how awesome the self-service of Atlantis has been for us. However, maintaining such a busy repo with trunk-based deployment has started to become a bit of a worry. Has anyone had any thoughts about splitting up repos or abandoning this pattern in favour of workspaces?
  2. With the way that the Terraform operations are being handled with Atlantis - if another PR of the same repo is merged into master, is there any recommended approach to getting those merged changes added into any open Atlantis PRs? We’re consistently rebasing the feature branches with master during lengthly PR’s. We’re looking at Github actions etc and potentially set up a PoC to try workspaces but wanted to the opinion of others who have experienced a similar situation?
gruntwork-io/terragrunt-infrastructure-live-example

A repo used to show examples file/folder structures you can use with Terragrunt and Terraform - gruntwork-io/terragrunt-infrastructure-live-example

David avatar

Interesting, at my company we have about 20 eng who touch infra code in a monorepo with trunk-based deployment with about 500 modules and haven’t experienced too much trouble.

You should only need to rebase if another PR affected the same modules or otherwise would affect output values from dependencies of the module you are running on, which brings up two questions:

  1. Are your modules maybe too large that multiple devs frequently are changing them at the same time? This should happen now and then, but if you have small enough modules shouldn’t be a constant thing
  2. If you really are having multiple devs touch the same modules all the time, how would having smaller repos help? You’d just move the problem of touching file X into whichever smaller repo manages file X Is it maintaining the atlantis.yaml that’s worrying you maintenance wise, or something else?
gruntwork-io/terragrunt-infrastructure-live-example

A repo used to show examples file/folder structures you can use with Terragrunt and Terraform - gruntwork-io/terragrunt-infrastructure-live-example

2020-10-22

zeid.derhally avatar
zeid.derhally

Have people here integrated checkov into their atlantis workflows? or do they utilize github actions?

RB avatar

i added checkov to atlantis but not through a github action

RB avatar

i added it to via atlantis workflow so it comments the output of checkov’s scan of the tf plan directly in the PR

zeid.derhally avatar
zeid.derhally

that’s my thinking, was thinking of running it before the plan

joshmyers avatar
joshmyers

done similar with conftest/OPA

zeid.derhally avatar
zeid.derhally

also it helps not to rely on dev teams having to configure github actions

jose.amengual avatar
jose.amengual

did you use a script and a -run command to run checkov/conftest in the workflow?

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

@barak might have some tips

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

I definitely know they have a #github-actions for it

barak avatar

Hey @zeid.derhally, haven’t tried it with atlantis. Sounds like a great fit. @RB do you mind sharing a sample conf? I would be happy to add it to checkov’s docs

cc: @Matt Johnson

RB avatar
nitrocode/atlantis-terraform-module

Basic terraform cicd setup using atlantis. Contribute to nitrocode/atlantis-terraform-module development by creating an account on GitHub.

jose.amengual avatar
jose.amengual

awesome, now I can copy paste

RB avatar

that’s not the current one we’re using but it’s an example of how to adopt checkov and tflint and add additional ones like tfsec, opa, etc

zeid.derhally avatar
zeid.derhally

thanks @RB

np1
barak avatar
barak
04:58:29 PM

@barak has joined the channel

2020-10-26

Steve Wade (swade1987) avatar
Steve Wade (swade1987)

can Atlantis perform a rolling upgrade style upgrade using the upstream AWS terraform module on Fargate?

joshmyers avatar
joshmyers

On itself? No, it cannot lobotomies itself AFAIK

David avatar

Does anyone use Atlantis + Terraform Cloud, or is it more of a one or the other situation? I haven’t looked at the cloud much, as it wasn’t around when I set up all our infra code

Igor avatar

IMHO it’s one or the other. I wanted to give TC a go, but Atlantis just handles far more at this point and isn’t as opinionated.

1
    keyboard_arrow_up