On the "Fetching Data from Maps and List Variable" Video. With the variables. tf file you only have the List Example. Might be helpful if you also add the Map code as well which is aligned with the video:
resource "aws_instance" "myec2" {
ami = "ami-082b5a644766e0e6f"
instance_type = var.types["ap-south-1"]