-
Notifications
You must be signed in to change notification settings - Fork 16
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
Cross AWS account access #16
Comments
It would be great if we can add a simple config prop like The problem is that the plugin pushes to the ECR repository when the cache is invalidated, which may happen in the dev account/queue. This is at odds with our internal ECR guidance, which is for the repository to live in the prod account and to disallow pushes from other accounts. A workaround would be for the plugin to detect if it is running in a queue outside of the configured account and skip any write operations accordingly. This feels a bit hand-wavy though. What do you think @zsims? |
I don't really understand the issue, is it a problem to have the cache stored in multiple ECRs? Without the cache you'd normally re-run those steps anyway. I don't think adding behaviour for conditional writes or queue sniffing is the right approach. But I'm keen to understand the problem a bit more. Why is it an issue the cache is stored in each account? |
If I understand correctly, it's just an optimisation to avoid rebuilding the image in each account. Maybe it's not worth the effort as you say. |
We could do it (the effort is no issue :)). It's a bit chicken and egg because you'd have to ensure a cached build is run within the ECR account first. But we could
Thoughts? It's not a lot of effort but we'd have to change the slogan "Zero config plugin for caching Docker images in Amazon ECR" 😆 |
Oops, forgot to loop back. Yeah the chicken-and-egg bit is fiddly, though unlikely if you're running all steps in prod (save for non-prod deployment). I'm not sure how we'd specify all the accounts permitted to read(/write?) to the central ECR repo though. Yet another config option 🙄? |
Currently this plugin can only retrieve docker images from a specified ECR in the same AWS account. Is this by design ?
For an application, the problem is that the
prod
anddev
version runs in different AWS accounts and were deployed using different buildkite agents in differentqueues
.This means the same docker image would need to be created/stored in multiple ECR in different AWS accounts.
Any suggestions for this issue ?
The text was updated successfully, but these errors were encountered: