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

Priyashree Shetty

03/16/2023, 9:59 AM
Hi Team . Can someone help me in setting up atlantis on EKS cluster ? I did a setup on my AWS EKS cluster and able to access the atlantis UI, also, when I create a new pull request atlantis does run a plan and init. However, when I try to comment on the commit, it does not work. Atlantis logs also do not show anything
p

PePe Amengual

03/16/2023, 3:33 PM
what version of Atlantis, VCS type and config are you using?
of Atlantis is in debug mode and you see nothing then you might not be hitting Atlantis at all
p

Priyashree Shetty

03/16/2023, 4:28 PM
atlantis version 0.23.1, VCS type is bitbucket. I have used helm install to do the deploy. Following is my atlantis.yml file
version: 3
automerge: true
delete_source_branch_on_merge: true
parallel_plan: true
parallel_apply: true
projects:
- name: test-atlantis
  branch: /.*/
  dir: .
  workspace: default
  #terraform_version: v1.1.1
  delete_source_branch_on_merge: true
  autoplan:
    when_modified: ["*.tf", "*.tfvars"]
    enabled: true
  apply_requirements: [mergeable, approved]
  workflow: default
workflows:
  default:
    plan:
      steps:
      - init
      - plan:
    apply:
      steps:
      - apply
I do not find any error message. Also, I see that the status code to the webhook URL is 200. The request is hitting the webhook URL but not the atlantis URL. Will whitelisting all the bitbucket IPs in load balancer security groups help here ?
p

PePe Amengual

03/16/2023, 4:35 PM
if is not open to the public yes
you will need to whitelist all the bitbucket ips
p

Priyashree Shetty

03/16/2023, 4:36 PM
Okay. Let me try it
Link https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/ has a list of IPv4 outbound Ips. I understand these are the one which should be whitelisted
p

PePe Amengual

03/16/2023, 4:39 PM
yes
p

Priyashree Shetty

03/16/2023, 4:40 PM
Thank you
I whitelisted all the bitbucket Ips, currently, it is giving me timeout/network error. Also, I logged into the pod where atlantis is running and I see that repos.yml file is created in the folder /etc/atlantis whereas ATLANTIS_DATA_DIR is set to /atlantis-data . Should not the repos.yml file be in the ATLANTIS_DATA_DIR ?
p

PePe Amengual

03/17/2023, 5:30 PM
no, that is fine
the timeout is what you need to look into, Bitbucket needs to be able to hit the /events endpoint ( https I hope)
p

Priyashree Shetty

03/18/2023, 2:36 AM
yes, I am using https.
p

PePe Amengual

03/18/2023, 4:56 AM
did you get the ingress fixed?
p

Priyashree Shetty

03/18/2023, 8:10 AM
No, still it is not working