How to Grant Access to Specific GitHub Repositories for an External AWS Account?
Asked by
~4 extra pockets
Hey everyone! I'm trying to figure out how to trigger AWS CodePipeline in an external AWS account without giving blanket access to all our GitHub repositories. We currently have an organization on GitHub that uses the AWS connector to manage our own pipelines, but I need to set this up for just a few specific repositories that should trigger a customer's CodePipeline. I was thinking about creating a GitHub app that only accesses these repositories, but I hit a snag when trying to connect it to CodeStar; it keeps defaulting to our AWS connector instead. I'm also considering if GitHub Actions could be a workaround to push code into the CodePipeline bucket and trigger it via EventBridge, but that seems a bit unclean. Have any of you run into this challenge before? Any advice would be appreciated!
Answers
It sounds like you've got a handle on things! I've used similar methods successfully. You might want to check out that article you mentioned about multi-tenant access for GitHub repositories. It can help you achieve the needed isolation while still using the AWS connector effectively.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions