Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Managed Service for GitLab
  • Getting started
    • All guides
    • Getting information about instances
    • Creating and activating an instance
    • Setting up security groups and access restrictions to an instance
    • Stopping and starting an instance
    • Editing instance settings
    • Managing backups
    • Migrating from a custom GitLab installation
    • Migrating to a different availability zone
    • Cleaning up full disk space
    • Deleting an instance
    • Adding and removing users from a project
    • Setting up approval rules
    • Monitoring the instance status
    • Setting up OmniAuth
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • FAQ
  1. Step-by-step guides
  2. Editing instance settings

Editing instance settings

Written by
Yandex Cloud
Improved by
Danila N.
Updated at August 6, 2025

After creating a GitLab instance, you can edit the general and advanced instance settings yourself.

Changing general and advanced instance settingsChanging general and advanced instance settings

Management console
CLI
Terraform
API
  1. In the management console, select the folder where the GitLab instance is located.

  2. Select Managed Service for GitLab.

  3. Select the instance and click Edit at the top of the page.

  4. At the top of the page:

    • Specify a new instance name and description.
    • Add tags to break instances into logical groups.
    • Set or remove instance protection against accidental deletion by the user.
  5. Under Configuration:

    • Change the instance type. From the current instance type, you can only upgrade to a higher-performance type, e.g., from s2.micro to s2.small. You cannot downgrade to a lower-performance instance type.

    • Select another security group or create a new one:

      • Click Create group.
      • Enter a name and description for the security group. You can add rules for the security group later in Virtual Private Cloud.
      • Click Create.

      If you do not specify a separate security group, the default security group created in the instance network will be used.

      Configure your security group so that the rules allow incoming and outgoing traffic from the relevant ports and IP addresses.

      Warning

      The security group's setup determines the Managed Service for GitLab instance performance and availability.

      If you have issues with setting up a security group, contact support.

    • Specify the disk size. You can increase the disk size or keep the same size. You cannot reduce the disk size.

    • Change the automatic backup retention period, in days.

    • Select the appropriate configuration for approval rules.

      Note

      The configuration you select affects the cost of using the instance's computing resources.

    • To activate the approval rules, specify a GitLab token.

  6. Under Advanced settings, enable or disable deletion of untagged images. This setting affects the amount of free disk space on the instance.

  7. Click Save.

If you do not have the Yandex Cloud CLI installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. View the description of the CLI command to update the Managed Service for GitLab instance settings:

    yc managed-gitlab instance update --help
    
  2. Update the GitLab instance settings (this example does not use all available parameters):

    yc managed-gitlab instance update <instance_name_or_ID> \
      --new-name <new_instance_name> \
      --resource-preset-id <host_class> \
      --disk-size <disk_size_in_GB> \
      --deletion-protection \
      --approval-rules <approval_rule_configuration>
    

    Where:

    • --new-name: New instance name, unique within Yandex Cloud. The naming requirements are as follows:

      • It must be from 2 to 63 characters long.
      • It can only contain lowercase Latin letters, numbers, and hyphens.
      • It must start with a letter and cannot end with a hyphen.
    • --resource-preset-id: Host class. Represents the configuration of the virtual machine to host the GitLab instance. The possible values are:

      • s2.micro: 2 vCPUs, 8 GB RAM
      • s2.small: 4 vCPUs, 16 GB RAM
      • s2.medium: 8 vCPUs, 32 GB RAM
      • s2.large: 16 vCPUs, 64 GB RAM
    • --disk-size: Disk size in GB.

    • --deletion-protection: Instance protection against accidental deletion by the user.

      Note

      You can use the CLI to enable but not disable the accidental deletion protection.

    • --approval-rules: Approval rule configuration. The possible values are:

      • BASIC
      • STANDARD
      • ADVANCED

      Note

      The configuration you select affects the cost of using the instance's computing resources.

    Result:

    id: c17c60tpadua********
    folder_id: b1g2slt7p9ug********
    created_at: "2025-07-20T18:34:16.078Z"
    updated_at: "2025-07-20T18:54:49.829961285Z"
    name: test-cli
    resource_preset_id: s2.small
    disk_size: "107374182400"
    status: RUNNING
    admin_login: admin-gl
    admin_email: user@example.com
    domain: test-domain-user.gitlab.yandexcloud.net
    subnet_id: e9b4rrpuu2a********
    backup_retain_period_days: "7"
    deletion_protection: true
    approval_rules_id: BASIC
    gitlab_version: 17.11.6
    

    For more information about this command, see the CLI reference.

  1. Open the current Terraform configuration file that defines your infrastructure.

    For more information about creating this file, see Creating a GitLab instance.

  2. Change the parameter values in the GitLab instance description:

    resource "yandex_gitlab_instance" "my_gitlab_instance" {
      ...
      resource_preset_id        = "<host_class>"
      disk_size                 = <disk_size_in_GB>
      approval_rules_id         = "<approval_rule_configuration>"
      backup_retain_period_days = <backup_retention_period>
      deletion_protection       = <true_or_false>
      ...
    }
    

    Where:

    • resource_preset_id: Host class. Represents the configuration of the virtual machine to host the GitLab instance. The possible values are:

      • s2.micro: 2 vCPUs, 8 GB RAM
      • s2.small: 4 vCPUs, 16 GB RAM
      • s2.medium: 8 vCPUs, 32 GB RAM
      • s2.large: 16 vCPUs, 64 GB RAM
    • disk_size: Disk size in GB.

    • approval_rules_id: Approval rule configuration. The possible values are:

      • BASIC
      • STANDARD
      • ADVANCED

      Note

      The configuration you select affects the cost of using the instance's computing resources.

    • backup_retain_period_days: Automatic backup retention period, in days.

    • deletion_protection: Instance protection against accidental deletion by the user. The possible values are true or false.

    For more information about yandex_gitlab_instance properties, see the relevant provider documentation.

  3. Make sure the settings are correct.

    1. In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.

    2. Run this command:

      terraform validate
      

      Terraform will show any errors found in your configuration files.

  4. Confirm updating the resources.

    1. Run this command to view the planned changes:

      terraform plan
      

      If you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.

    2. If everything looks correct, apply the changes:

      1. Run this command:

        terraform apply
        
      2. Confirm updating the resources.

      3. Wait for the operation to complete.

    Terraform will update all the required resources. You can check the resource update using the management console or this CLI command:

    yc managed-gitlab instance list
    

For more information, see the Terraform provider documentation.

Use the Update REST API method for the Instance resource or the InstanceService/Update gRPC API call.

Was the article helpful?

Previous
Stopping and starting an instance
Next
Managing backups
© 2025 Direct Cursus Technology L.L.C.