Does Prefect create a repository on AWS ECR, if it...
# prefect-community
m
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
No, the Docker storage assumes that you have already created the repository and it will only attempt to push to the repository
m
gotcha ok. so i guess i do a "check" for that repo, and if not exists, create it. thanks