Feature request - Expose DNS records used in Pages configuration to rest of Terraform

Created by: tangodev

Currently configuring Pages with a custom domain requires a manual intervention.

Terraform Version

Terraform v0.13.5

Affected Resource(s)

If applicable:

  • gitlab_project
  • gitlab_project_pages (if it will exist in next release)

Actual Behavior

Jane is working on a static site with GitLab Pages and already has a DNS provider that supports Terraform. She has to manually copy and paste DNS records for her custom domain from the GitLab console into her Terraform code, which is troublesome and error prone.

Expected Behavior

Jane wishes to get the following from the GitLab provider:

  • CNAME DNS record that directs traffic from her domain to Pages;
  • TXT DNS record used for verification;

by ex. using a data source. That way she could pass those records as variables to the provider of her DNS company. This scales much better and is much less error prone than semi-automatic configuration.

Important Factoids

GitLab provider version:

  • 3.1.0
  • 3.2.0

References

Edited by Timo Furrer