1

I have created an EC2 Instance to host a web application on IIS.

Were using a directory service and hosting an domain account on there.

The app pools on IIS will use the domain account to authenticate to the RDS instance.

When I joined the domain to the instance it has given it a public IP.

Is there a reason why it automatically gives it a public IP? Ideally we want to keep this private.

thom4s94
  • 107
  • 1
  • 9
  • Are you sure joining the domain to the instance is what triggered the public IP assignment? Generally your VPC subnet settings determine if a public IP is assigned. – Mark B Feb 22 '22 at 16:48
  • 1
    There is an option called "Auto-assign Public IP" in the "Step 3: Configure Instance Details" section when launching an EC2 instance. You should just need to disable this option. – Cameron Feb 22 '22 at 18:07

0 Answers0