Jobs upload to s3 config should implement a script: or a trigger: keyword

I have run the below .yml file in.gitlab-ci.yml file

deploy:
stage: deploy
image:
name: banst/awscli
entrypoint: [""]
script:
- aws configure set region us-east-1
- aws s3 sync . s3://$S3_BUCKET/
only:

  • main

it is giving below error
jobs upload to s3 config should implement a script: or a trigger: keyword

installed awscli,runner but giving error