GitLab Integration

Connect your GitLab projects to manage Terraform with AI assistance

Connect your GitLab repositories to bring your existing infrastructure into Infra.new. Once connected, we'll automatically index your repository to provide:

  • Automated infrastructure analysis and cost estimation
  • AI-powered suggestions for improvements
  • Seamless export of changes back to your repository

Setup Instructions

Getting Started

Simply click the GitLab icon in the chat input and log in - that's it! Your repositories will be available immediately.

What You Get

Once connected, the GitLab integration automatically provides:

Repository Access

Read your infrastructure code and export changes

Merge Requests

Seamless creation and management of merge requests

Working with GitLab

Repository Indexing

When you connect a repository, we immediately begin indexing its contents. This typically takes a few moments depending on the repository size. Once complete, you can start interacting with your infrastructure code.

Making Changes

You can ask for infrastructure changes through natural language. When you're ready to apply these changes back to your repository:

  1. Click the
    Export to GitLab
    button
  2. Review the changes in the generated merge request
  3. Merge the MR to apply the changes to your main branch

Best Practice: One Chat Per Change

For the best experience, create a new chat for each distinct change, similar to how you would use branches in Git. This keeps changes isolated and makes it easier to manage and review modifications.

Branch Management

Each chat is automatically assigned a unique branch. When you export changes multiple times from the same chat, the changes will be added to the same branch and merge request, allowing you to iterate on your infrastructure changes.

Project Creation

If you don't have an existing GitLab project, Infra.new can automatically create one for you. Simply provide a project name when exporting, and we'll:

  • Create a new GitLab project in your account
  • Upload your infrastructure code
  • Create the initial merge request

GitLab Features

Automatic Project Setup

When exporting to a new GitLab project, Infra.new handles the entire setup process. The project will be configured with appropriate settings for infrastructure code management.

Merge Request Updates

Multiple exports from the same chat will update the existing merge request, making it easy to iterate on your changes. GitLab's merge request interface provides excellent tools for reviewing infrastructure changes.