EC2 instance configuration
An EC2 launch combines an AMI, instance type, subnet, security groups, storage and identity role. The AMI supplies an operating-system image; the instance type supplies compute capacity. Public reachability depends on networking and addressing, not merely choosing a machine size. An instance role supplies workload permissions independently from login mechanisms. A small app host can use a private subnet and Session Manager access, avoiding a public address and inbound SSH if its managed-node identity, agent and required network paths are correctly configured for the intended access method. Treating launch settings as a connected contract prevents a working compute resource from being mistaken for a securely accessible application, and keeps administration, application traffic and workload API permissions explicit rather than merged into one unrestricted instance setup for convenience. Choosing a public subnet does not automatically make the instance reachable; inspect public addressing, routes, filtering and the listening application rather than changing the AMI or increasing the instance size to solve an unrelated network path problem.
A small app host can use a private subnet and Session Manager access, avoiding a public address and inbound SSH if its managed-node identity, agent and required network paths are correctly configured for the intended access method.
Treating launch settings as a connected contract prevents a working compute resource from being mistaken for a securely accessible application, and keeps administration, application traffic and workload API permissions explicit rather than merged into one unrestricted instance setup for convenience.
Choosing a public subnet does not automatically make the instance reachable; inspect public addressing, routes, filtering and the listening application rather than changing the AMI or increasing the instance size to solve an unrelated network path problem.