Error while running gloud command

Hi,

I am trying to run gcloud command under null resource.

I am unable to create a resource in gcp using gcloud command in terraform.
please do the needful.

please find the code and error below
Thanks & Regards,
Omer.

TERRAFORM CODE: -

resource “null_resource” “config” {
connection {
type = “ssh”
host = “10.128.0.38”
user = var.user
#private = file("/home/omer_mohiuddin/vm-manager/modules/id_rsa")
}
provisioner “local-exec” {
command = <<-EOF
#!/bin/sh
gcloud compute os-config os-policy-assignments create osii-policy
–location=us-central1-a --file=/home/omer_mohiuddin/con.yaml
–async
EOF
}
}

ERROR:-

Error: local-exec provisioner error

│ with null_resource.config,
│ on main.tf line 109, in resource “null_resource” “config”:
│ 109: provisioner “local-exec” {

│ Error running command ’ #!/bin/sh
│ gcloud compute os-config os-policy-assignments create osii-policy
│ --location=us-central1-a --file=/home/omer_mohiuddin/con.yaml
│ --async
│ ': exit status 127. Output: ERROR:
(gcloud.compute.os-config.os-policy-assignments.create) unrecognized arguments:

│ To search the help text of gcloud commands, run:
│ gcloud help – SEARCH_TERMS
│ /bin/sh: 3: --location=us-central1-a: not found
: not found4: --async