module Healthcheck
  class S3
    def name
      :s3
    end

    def status
      connection = S3FileUploader.connection
      connection.directories.get(ENV["AWS_S3_BUCKET_NAME"])

      GovukHealthcheck::OK
    rescue StandardError
      GovukHealthcheck::CRITICAL
    end
  end
end

Add AWS S3 healthcheck module
Add AWS S3 healthcheck module

This will be required for the AWS S3 healthcheck.
