This is a very simple script to help automate the transfer of state files from Terraform Enterprise to GitLab managed Terraform backend
Edit the environment variables in
transfer.sh
to suit your environment
terraform login <YOUR_TFE_ENDPOINT>
bash transfer.sh