How to create an aws instance using an instance template in the aws cli

How do I create an instance with a chosen name from an instance template on aws.

Previously when I was on google cloud, first I created an instance template for example it was called node-template.

To create servers, I would use the following command in the gcloud cli,

gcloud instances create node-1 --source-instance-template=node-template
gcloud instances create node-2 --source-instance-template=node-template
gcloud instances create node-3 --source-instance-template=node-template

Is something similar possible with aws?

I basically need to create multiple instances with similar specs and be able to start them, SSH into them and stop them everyday.

1 answer