Gitlab artifacts are not present in next job

I am using gitlab ce, with the following gitlab-ci.yml configuration file, but it seems the file “planfile” is not uploaded in the next job.
I have even used " find " command to search about the file but no result.

TerraformPlan:
  stage: endPoint
  image:
    name: hashicorp/terraform
    entrypoint:
      - "/usr/bin/env"
      - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  before_script:
    - export ${AWS_ACCESS_KEY}
    - export ${AWS_SECRET_KEY}
  script:
    - terraform init
    - terraform plan -out "planfile"
    - terraform apply -input=false "planfile"
  only:
    - main
  dependencies:
    - "Deployment"
  artifacts:
    paths:
      - "planfile"
      - ".terraform"
    expire_in: 2 hours

TerraformApply:
  stage: endPoint
  image:
    name: hashicorp/terraform
    entrypoint:
      - "/usr/bin/env"
      - "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
  before_script:
    - export ${AWS_ACCESS_KEY}
    - export ${AWS_SECRET_KEY}
  script:
    # - terraform apply -input=false planfile
    #- cat planfile
    - ls -la

  when: manual
  only:
    - main
  dependencies:
    - TerraformPlan