terraform var syntax error

Job ID: 33246608

Budget: $10 – $30 USD

Please see below a small syntax help guidance needed?

The var NEXT_HOSTNAME is "xyz-123" and would like to

value = "${digitalocean_droplet.xyz-123.ipv4_address}

How above can I replace "xyz-123" with var NEXT_HOSTNAME ?

The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.

│ Error: Invalid resource name

│ on vm-servers.tf line 6, in resource "digitalocean_droplet" "var.NEXT_HOSTNAME":
│ 6: resource "digitalocean_droplet" "var.NEXT_HOSTNAME" {

│ A name must start with a letter or underscore and may contain only letters,
│ digits, underscores, and dashes.


(perhaps we can do this quick on screen share and 5 stars?)


SINCERELY WOULD BE NICE TO MEET YOU PLEASE

My funds are low but will pay quick and leave 5 stars. Please give your best possible for your bid ? (something reasonable?) Please note there is hope we can mutually complete this task; we can leave each other nice comments and 5 stars for each? Look at feedback on my profile, feedback I left for many others. Here is the project:

ANY THOUGHTS ? Please note project is due in TWO HOURS as this projects deadline, as this is needed if we can get some done - then we can talk about next steps and 5 stars and another job also. If this is a good one and we are "successful"; would need a couple others setup, but will handle one at a time? Can you do this for something reasonable in a couple hours? thoughts ?