Does Prefect create a repository on AWS ECR, if it does not exist?
I am getting this error
The repository with name 'staging-prefect-insurance_export' does not exist in the registry with id '524279393077'
Im running something like this :
Copy code
Docker(registry_url='<account_id>.<http://dkr.ecr.us-west-2.amazonaws.com|dkr.ecr.us-west-2.amazonaws.com>',
image_name="dev-prefect-<flow-name>",
python_dependencies=python_dependencies,
files={f: os.path.join('/modules/', os.path.basename(f))
for f in get_files_in_directory(current_module_directory)},
env_vars = {"PYTHONPATH": "$PYTHONPATH:modules/:modules/utils/"})
j
josh
12/16/2020, 7:52 PM
No, the Docker storage assumes that you have already created the repository and it will only attempt to push to the repository
m
Marc Lipoff
12/16/2020, 7:52 PM
gotcha ok. so i guess i do a "check" for that repo, and if not exists, create it. thanks
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.