I'd like to sync the contents of a folder in my repository to the GCP Composer dags/
folder in a simple command.
The gcloud composer cli seems to have a command for this however it leaves a warning that support for wildcards is being removed.
>> gcloud composer environments storage dags import \
--source="dir/*" \
--environment={env_name} \
--location={loc}
WARNING: Use of gsutil wildcards is no longer supported in --source. Set the storage/use_gsutil property to get the old behavior back temporarily. However, this property will eventually be removed.
Is there a way to use this command that has the same effect of expanding the contents of dir
into the composer dags/
folder that isn't being deprecated? I've looked into gsutil rsync
but that command makes it very difficult to ignore certain files and directories. GCloud has a nice .gcloudignore
file that handles this for you.