Skip to content

Add Terraform Project Template

Problem to solve

Add a project template for terraform. By adding a project template for terraform, it would allow users to quickly spin up on terraform in gitlab and gitlab ci, and try out our features.

Documentation on adding a new project template.

Intended users

Proposal

Create an example project that sets up a full EKS cluster similar to https://github.com/particuleio/teks, but without terragrunt as a requirement. Aim to be able to use this project as we ship #220201 (closed)

Definition of Done

  • A template repo is created with:
    • An example terraform file that puts an image in EC2
    • A .gitlab-ci.yml file that runs validate, plan, and apply to the files
    • A readme with documentation on how to make changes and such
  • The template is added and accepted in the gitlab base repo
  • doc/user/infrastructure/index.md is updated to be used for a quick start

Documentation

Update https://docs.gitlab.com/ee/user/infrastructure/#quick-start to use the template instead of prividing a code snippet.

Availability & Testing

What does success look like, and how can we measure that?

We'll want to measure the number of project creations with this template. It could also help us judge general interest in using terraform with gitlab.

What is the type of buyer?

Most of the project templates seem to be in core.

Links / references

Edited by Viktor Nagy (GitLab)