sadasystems / Migrate-Projects-To-SADA

Migrate projects from old billing account to SADA Billing Account ID

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Migrate to SADA Billing Account

Migrate your projects that are currently connected to your legacy billing account to SADA billing account

Getting Started

Make sure node and gcloud is installed on your system

gcloud - https://cloud.google.com/sdk/docs/install

nodejs - https://nodejs.org/en/download/

WARNING: USER NEEDS BILLING ACCOUNT ADMINISTRATOR ROLE FOR YOUR SADA BILLING ACCOUNT

1. Clone the repository and navigate to the directory

git clone https://github.com/sadasystems/Migrate-Projects-To-SADA.git 
cd Migrate-Projects-To-SADA

2. Authenticate yourself with Google

Install gcloud beta Make sure this user has sufficient permissions at YOUR ORGANIZATION level IAM

gcloud components install beta --quiet
gcloud default application login 
gcloud init

3. Install all dependencies with clean install

npm install

4. Add billing ids

In the .env file, add old billing account ID and sada billing account ID

5. Run Script

node main.js

It will take 1-2 minutes to process through all the projects (be a little patient! :))

About

Migrate projects from old billing account to SADA Billing Account ID


Languages

Language:JavaScript 94.8%Language:Shell 5.2%