How to retain AWS resources created in current sessions for next sessions

Continuing the discussion from How long i can use the AWS playground once i loggedIn:

@Tej-Singh-Rana how can i retain resources like, vpc,ec2 ,EKS,for next session , one cannot keep on creating resources like EKS cluster everytime with a new session. is there a way to retain resources on AWS for practicing on next sessions.

Hi @sidhesh2801

No resources can be retained at the end of a session. The sessions are deleted, else the cost of running it would be prohibitive.

If you want to recreate resources, you should use Infrastructure as Code (AWS Cloud Formation, or when the IAM access key issue is fixed, Terraform)