https://www.runatlantis.io/ logo
Title
d

dsag

03/08/2023, 6:47 PM
when i do ./atlantis bootstrap, i get this error
zsh: bad CPU type in executable: ./atlantis
p

PePe Amengual

03/08/2023, 6:48 PM
did you run
go install
from source or downloaded a build?
d

dsag

03/08/2023, 6:49 PM
i tried to follow this video to install atlantis, but fails
/atlantis bootstrap                                                                                   00:19:01 
Error: unknown command "bootstrap" for "atlantis"
Run 'atlantis --help' for usage.

https://www.youtube.com/watch?v=TmIPWda0IKg&t=15s

p

PePe Amengual

03/08/2023, 6:58 PM
so did you solved the bad cpu error?
are you on an M1?
d

dsag

03/08/2023, 7:01 PM
yes
i solved that
do we need to use ngrok?
p

PePe Amengual

03/08/2023, 7:03 PM
if you want to use a webhook from github you need an https endpoint
or somehow have a dns pointing to your computer
ngrok solves that problem
d

dsag

03/08/2023, 7:04 PM
how about incase of production?
p

PePe Amengual

03/08/2023, 7:05 PM
ngrok is ONLY for testing
nothing else
in prod you will have a load balancer , the atlantis container running somewhere etc
d

dsag

03/08/2023, 7:06 PM
you mean to say atlantis would be exposed as a service through a kubernetes LB or something?
p

PePe Amengual

03/08/2023, 7:07 PM
well it depends
what VCS are you using?
d

dsag

03/08/2023, 7:07 PM
github
p

PePe Amengual

03/08/2023, 7:08 PM
then you can have a github runner within your VPC and connect to the atlantis instance internally
but usually you will need atlantis exposed to the internet so that the webhook can reach atlantis
and you can lock it down to the github webhook ip address range and such
d

dsag

03/08/2023, 7:13 PM
do i need to create the webhook?
i tried to add the ngrokurl/events to the webhooks
p

PePe Amengual

03/08/2023, 7:23 PM
yes you do
look at the doc on how to configure Atlantis
d

dsag

03/08/2023, 7:27 PM
so when i do
atlantis apply -d .
, where does the apply happen?
p

PePe Amengual

03/08/2023, 7:28 PM
if you are running atlantis in your mac
it will happen in your mac
so your mac will need credentials and all that to assume whatever role is needed and such
d

dsag

03/08/2023, 7:29 PM
so we use gcp, aws and github actions for CI/CD. what would be the way to go for me?
p

PePe Amengual

03/08/2023, 7:35 PM
d

dsag

03/08/2023, 7:36 PM
what is this?
p

PePe Amengual

03/08/2023, 7:36 PM
a TF module to setup Atlantis in gcp