This is basic template in which one instance can create and in second one Instance can create with Security group.
Selectinstance is selecting instance type option where you can choose type of instance as follows
In output you can see InstanceId , PublicDNS , PublicIP![selectinstance_formation] (https://user-images.githubusercontent.com/79393628/189797296-28646691-f05c-4bb1-b4ae-013d30c89c94.png)