The Monster Market needs its own server. An old test server, old-test-y7rc9t, is still running from last month.
- Start a
t3.microinstance from Amazon Linux 2023,ami-0c7217cdde317cfec, namedweb-y7rc9t. - Read the state in the answer of
run-instances. Then list the instances with the command at the end of the lesson, untilweb-y7rc9tisrunning. - Nobody will use
old-test-y7rc9tagain. Delete it for good:
New command
aws ec2 terminate-instances
Terminates an instance: it shuts down and is deleted with its disk. This can't be undone.
Usageaws ec2 terminate-instances --instance-ids instance-id
Example
aws ec2 terminate-instances --instance-ids i-0f3c9a71e2b84d605
Objectives
web-y7rc9tis a runningt3.micro.- Which state was it in, right after you started it?
old-test-y7rc9tis terminated.