C4W4A1 Lab - Unsure about what to put in <PACIFIC-TIME-CURRENT-DATE>

For this section of the lab:
4.2.3. Open the terraform/modules/transform_job/glue.tf file. Complete the code following the instructions and save changes.

And in this section

Set “–ingest_date” to the server’s current date in Pacific Time (UTC-7), in “yyyy-mm-dd” format.

# (replace the placeholder <PACIFIC-TIME-CURRENT-DATE>)
"--ingest_date"             = "<PACIFIC-TIME-CURRENT-DATE>" 

I am getting an error on the timestamp format.

Error: Invalid function argument

│ on modules/transform_job/glue.tf line 25, in resource “aws_glue_job” “json_transformation_job”:
│ 25: “–ingest_date” = formatdate(“yyyy-MM-dd”, timestamp())
│ ├────────────────
│ │ while calling formatdate(format, time)

│ Invalid value for “format” parameter: invalid date format verb “yyyy”.


│ Error: Invalid function argument

│ on modules/transform_job/glue.tf line 65, in resource “aws_glue_job” “songs_transformation_job”:
│ 65: “–ingest_date” = formatdate(“yyyy-MM-dd”, timestamp())
│ ├────────────────
│ │ while calling formatdate(format, time)

│ Invalid value for “format” parameter: invalid date format verb “yyyy”.

Waht should I put in the “–ingest_date” = ?

Hello @weiweiwong
You should put the current date from the pacific time zone in the “yyyy-mm-dd” format. You can use google like this:


Currently, this value should be 2024-12-13.

Thank you very much, Amir. That worked!