Artifact issue with Vault

We are using artifacts in nomad and have deployed an s3 bucket and hardcoded access and secret keys in a script. But when we are giving to go a take creds for accessing S3 from Vault and it’s failing.

artifact {
source = “mys3bucket”
options {
aws_access_key_id = “myaccesskey”
aws_access_key_secret = “mysecretkey”
}
}

Please help to solve this issue.
Thanks.