Section 6: Resource Cleanup
Delete the lab environment after completing the exercises to prevent unnecessary AWS charges.
6.1 Delete the CloudFormation Stack
Open the AWS CloudFormation console.
Select the stack created for your student account.
Select Delete.
Confirm the deletion.
Wait until the stack is removed from the active stack list or reaches:
textDELETE_COMPLETE
Important
Deleting the CloudFormation stack permanently removes the resources created by the template.
6.2 Verify Resource Removal
Confirm that the following lab resources have been removed:
- FortiGate EC2 instance
- Spoke EC2 instances
- Security and spoke VPCs
- AWS Transit Gateway and attachments
- Route tables created by the stack
- Network interfaces and public IP addresses created by the stack
WARNING
The EC2 key pair created manually in Section 1 is not normally deleted by the CloudFormation stack. Delete it manually when it is no longer required.
Lab Complete
You have completed the FortiGate-VM Hub-and-Spoke lab on AWS.