Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add code to work with Gitlab webhooks #22

Closed
sethfloydjr opened this issue Oct 2, 2018 · 3 comments
Closed

Add code to work with Gitlab webhooks #22

sethfloydjr opened this issue Oct 2, 2018 · 3 comments

Comments

@sethfloydjr
Copy link

Need to add code that allows for use of Gitlab webhooks as well.
So you could use something like:

# Atlantis
  atlantis_gitlab_user                 = "atlantis-bot"
  atlantis_gitlab_user_token      = "examplegitlabtoken"
  atlantis_repo_whitelist            = ["gitlab.com/terraform-aws-modules/*"]"
@rosscdh
Copy link

rosscdh commented Oct 30, 2018

I've added that and quite a bit more at : https://github.com/rosscdh/terraform-aws-atlantis/tree/feature/gitlab Please review and see if it suits your purposes...

module "atlantis-app" {
  source = "/Users/ross/p/PlatformEngineering/vendors/terraform-aws-atlantis/gitlab"

  name = "${var.name}"
  
  # VPC
  cidr            = "${var.cidr}"
  azs             = "${var.azs}"
  private_subnets = "${var.private_subnets}"
  public_subnets  = "${var.public_subnets}"

  # DNS (without trailing dot)
  route53_zone_name = "${var.route53_zone_name}"

  # ACM (SSL certificate) - Specify ARN of an existing certificate or new one will be created and validated using Route53 DNS
  certificate_arn = "${var.certificate_arn}"

  # Atlantis
  atlantis_image             = "${var.atlantis_image}"
  atlantis_gitlab_base_url   = "${var.atlantis_gitlab_base_url}"
  atlantis_gitlab_user       = "${var.atlantis_gitlab_user}"
  atlantis_gitlab_user_token = "${var.atlantis_gitlab_user_token}"
  atlantis_repo_whitelist    = "${var.atlantis_repo_whitelist}"
  gitlab_organization        = "${var.gitlab_organization}"

  container_definitions      = "${var.container_definitions}"

  providers = {
    aws = "aws.eu-central-1"
  }

  tags = {
    Terraform = "true"
    Environment = "${var.tag_environment}"
  }
}

@antonbabenko
Copy link
Member

v1.6.0 has been just released. There is Gitlab support added.

Please give it a try and let me know if there is anything not working.

Closing this one.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants