Terraform - Creating AWS subnets with a, b & c

Hi Team,

I have started applying terraform scripts… I have an idea how can i configure the subnets with naming like sub_dev-public-1, sub_dev-public-2 & sub_dev-public-3…

But i would like to configure like sub_dev-public-a, sub_dev-public-b & sub_dev-public-c

Here, my resource block… Can you please advise me the syntax help?

data "aws_availability_zones" "available" {}
    resource "aws_subnet" "tf_public_subnet" {
        count = 3
        vpc_id = "${aws_vpc.tf_vpc.id}"
        cidr_block = "${var.public_cidrs[count.index]}"
        map_public_ip_on_launch = "true"
        availability_zone = "${data.aws_availability_zones.available.names[count.index]}"
        tags {
            Name = "sub_dev-public-${count.index + 1}"
        }
    }

I’d use the ternary thing but I don’t have a lot of 0.12 experience so there could be a map func that would work better.

Example which doesn’t directly answer your question, but may be helpful anyway:

resource "aws_subnet" "kitchen" {
    count      = var.subnet_count
    vpc_id     = aws_vpc.kitchen.id
    cidr_block = "10.0.${count.index}.0/24"

    availability_zone = "${var.region}${var.availability_zone}"

    map_public_ip_on_launch = count.index % 2 == 0 ? true : false

    tags = {
    Name    = "${var.project}-${var.environment}-${count.index % 2 == 0 ? "public" : "private"}-${replace(var.region, "-", "")}${var.availability_zone}-${count.index}"
    }
}