Error during Terraform plan and apply RDS oracle-se2

Here’s my terraform version
$ terraform --version
Terraform v0.13.2

I was on 12.8 and just upgraded today to 13.2 latest version available and I’m getting below error when tried to launch rds oracle-se2 instance.

I was able to install postgresql with no issues, i have checked the engine and engine version variables and looks good to me.

Can someone please take a look at this error and guide me what’t the issue and missing here??

$ terraform plan
Refreshing Terraform state in-memory prior to plan…
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.

data.aws_subnet_ids.private: Refreshing state…


Error: Invalid function argument

on .terraform\modules\db.db_security_group\db_security_group\main.tf line 10, in resource “aws_security_group” “this”:
10: from_port = lookup(var.port, var.engine)
|----------------
| var.port is object with 5 attributes

Invalid value for “inputMap” parameter: the given object has no attribute
“oracle-se2”.

Error: Invalid function argument

on .terraform\modules\db.db_security_group\db_security_group\main.tf line 11, in resource “aws_security_group” “this”:
11: to_port = lookup(var.port, var.engine)
|----------------
| var.port is object with 5 attributes

Invalid value for “inputMap” parameter: the given object has no attribute
“oracle-se2”.

######Here’s the terraform resource code for security group.######

resource “aws_security_group” “this” {
count = var.create && var.use_name_prefix ? 1 : 0

name_prefix = “{var.identifier}-" description = "Allow inbound database traffic to {var.identifier}”
vpc_id = var.vpc_id
tags = merge(var.tags, map(“Name”, format("%s", var.identifier)))

ingress {
from_port = lookup(var.port, var.engine)
to_port = lookup(var.port, var.engine)
protocol = “TCP”
cidr_blocks = var.permit_cidr
}

egress {
from_port = 0
to_port = 0
protocol = “-1”
cidr_blocks = var.permit_cidr
}

lifecycle {
create_before_destroy = true
}
}