GitHub Actions on EC2 instances

0

Hi AWS, I want to test a sample app as part of POC on the enterprise EC2 instances (both Linux and Windows). Having said that I want to build CI/CD for the app on both platforms using GitHub Actions but the condition is the servers should be private in nature. Also I need to know how can we RDP and SSH into the instances to install GitHub Actions runner. Do we need to use any bastion instance or OpenVPN server. How does the infrastructure setup look like?

Thanks

profile picture
Arjun
질문됨 8달 전324회 조회
1개 답변
0

A few months ago, I started working on a very similar solution and came up with the following scalable and cost-efficient solution.

  1. GitHub sends a webhook event when starting a job.
  2. The API Gateway receives the event.
  3. A Lambda function validates the event and sends a message to SQS.
  4. Another Lambda function reads the message from SQS and launches an EC2 instance in an VPC of your choice.
  5. The EC2 instance starts and registers the GitHub runner.
  6. The GitHub runner executes the job.
  7. The EC2 instance terminates itself.

Spin up EC2 instances to provide self-hosted GitHub runners on-demand

My solution is called HyperEnv for GitHub Actions Runner.

답변함 4달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠