EFS is never working

Hi,
Whenever we add efs as a resource as shown in the code snippet and deploy the application, it never promotes the build and we are getting following error:
ERROR: json syntax error: line 203 pos 2: invalid character ‘}’ looking for beginning of object key string: }

    volumes:
      - sharedvolume:/foo/bar/data
    resources:
      - sharedvolume


resources:
  sharedvolume:
    type: efs
    options:
      path: "/volumes"