machulav/ec2-github-runner

How to assign public ip to ec2 instance

raghulkrishna opened this issue · 3 comments

How to assign public ip to ec2 instance

This would be surprisingly helpful in some VPC situations. Can't always jam a NAT gateway in.

As this action does not currently support associating a public IP on instance launch (see https://github.com/machulav/ec2-github-runner/blob/main/src/aws.js#L22-L32), you'd need to run the instance in a subnet that is configured for automatic public IP assignment.

See relevant AWS documentation for more information.

@machulav @danielloader Here's a quick stab at it: #57. Let me know what you think.