Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 43,838
    • Issues 43,838
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,421
    • Merge requests 1,421
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #247042
Closed
Open
Created Sep 09, 2020 by Michael Kozono@mkozono🌴Maintainer2 of 3 tasks completed2/3 tasks

Add `rake gitlab:terraform_states:migrate` (to object storage)

Problem

Customers with deployments with files stored locally may wish to migrate the files to object storage. Maybe they are transitioning to Kubernetes.

We have:

  • rake gitlab:uploads:migrate
  • rake gitlab:artifacts:migrate
  • rake gitlab:lfs:migrate
  • rake gitlab:packages:migrate

But it looks like we don't have a task for:

  • Terraform States
  • Also, the upcoming Terraform::State::Version should be included in the same task

Proposal

  • Add rake task to migrate to object storage, e.g. rake gitlab:terraform_states:migrate => !50740 (merged)
  • Add rake task to migrate to local storage, e.g. rake gitlab:terraform_states:migrate_to_local (this could be a follow up, but it is not for nothing: we know the lack of rollback tasks has been a problem in the past) => #350187
  • Add docs for customers, maybe like https://docs.gitlab.com/ee/administration/raketasks/uploads/migrate.html, or search the docs for the other rake tasks
Edited Jan 12, 2022 by Michael Kozono
Assignee
Assign to
Time tracking