# prod-ostrava-cloud-entities-dump 

G2 Cloud entities for environment `production` are dumped into this repository.

Toolset dumping cloud entities is infrastructure-entity-exporter, stored in https://gitlab.ics.muni.cz/cloud/infrastructure-entity-exporter.

The process of dumping is done via a scheduled pipeline. To run entity dump on demand launch the pipeline from [here](https://gitlab.ics.muni.cz/cloud/g2/prod-ostrava-cloud-entities-dump/-/pipeline_schedules).

## Notes

Pushing entities back to the repository requires a [project token](https://gitlab.ics.muni.cz/cloud/g2/prod-ostrava-cloud-entities-dump/-/settings/access_tokens). Gitlab Docs mentioned the default expiration (1 year). If this project stops working, a new token `might` help. The new token value needs to be copied into the [PULL_PUSH_TOKEN](https://gitlab.ics.muni.cz/cloud/g2/prod-ostrava-cloud-entities-dump/-/settings/ci_cd) variable.

If You are dealing with this, check: https://docs.gitlab.com/ee/ci/jobs/ci_job_token.html. CI_JOB_TOKEN can pull but can't push. This functionality is being implemented and might already be available. Using CI_JOB_TOKEN would in that case be preferrable to project token.