department-of-veterans-affairs / va.gov-cms

Editor-centered management for Veteran-centered content.
https://prod.cms.va.gov
GNU General Public License v2.0
99 stars 70 forks source link

Discovery: Script to move unattached PDFs from Drupal into S3 Bucket #18431

Open gracekretschmer-metrostar opened 3 weeks ago

gracekretschmer-metrostar commented 3 weeks ago

User Story or Problem Statement

The CMS team needs to understand what is feasible and the process to remove inactive PDFs from Drupal and into a S3 bucket and what options do we have to limit the types of PDFs that get removed.

Description or Additional Context

Right now, there are unattached PDFs within Drupal CMS that need to be moved out of Drupal and into a S3 bucket. An unattached PDF is a PDF that is not connect to any content within Drupal CMS. The CMS team has been working with VHA Digital Media and have agreed to the idea of creating a script to clear out any unused PDFs after a specific # of days. We also need the PDFs that are moved into the S3 bucket to be easily searchable, in case a editor needs the PDF or for a FOIA request.

Before we move forward with implementing the script, we want to create a plan of action.

Relevant Links

Steps for Implementation

Anti-Goals

Stretch Goal

Acceptance Criteria

anantais commented 2 weeks ago

Current progress:

Installed this module that Edmund had recommended using: https://www.drupal.org/project/s3fs Looking at how to configure this. I will likely be setting up a meeting with Tyler in the next day or so to discuss it.

anantais commented 2 weeks ago

What is the "VHA Digital Media sections" referring to? Is that any pdf that falls under the VHA section? Is there a specific tag or something else being used to identify these pdfs?

^ This question was answered in Slack

michelle-dooley commented 1 week ago

Drupal devs cannot get access AWS. We need to determine next best path to move forward with this work.

Note: this issue has been resolved we should be able to continue as planned

7hunderbird commented 1 week ago

@michelle-dooley I appologize if I hadn't communicated this directly before, but we're working on getting Amanda and Jake a "developer" access to AWS.