Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach repository policies to repository created in ECR #20

Open
yannh opened this issue Aug 6, 2020 · 0 comments
Open

Attach repository policies to repository created in ECR #20

yannh opened this issue Aug 6, 2020 · 0 comments

Comments

@yannh
Copy link

yannh commented Aug 6, 2020

Hello! I am working on syncing images from Dockerhub/quay.io to ECR. However, I would need to attach an ECR Repository Policy to the repositories created by Dregsy - as far as I understand dregsy can not do this yet.

I am not too sure how to add this to the configuration file. Since policies are per-repository, I could need to add a configuration element to the mapping section - also, there could be several, so it should be an array?

mappings:
  - from: test/image
    to: archive/test/image
    [policies|ecr_policies]:
    - /path/to/policy.json 

Is this something you would be willing to accept as a Pull Request? I would love your input.
Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants