INNER CODE UNIT · JavaScript

configureBuckets

ar90n/serverless-s3-local · serverless-s3-local/index.js:252

      const configureBuckets = this.buckets().map((name) => {
        if (typeof name === "object") {
          // Fn::Sub, Fn::Join, Fn::Select
          const awsFuncKey = Object.keys(name)[0];
          return { name: name[awsFuncKey], configs };
        }
        return { name, configs };
      });

      let cert;
      let key;
      if (typeof httpsProtocol === "string" && httpsProtocol.length > 0) {
        cert = fs.readFileSync(
          path.resolve(httpsProtocol, "cert.pem"),
          "ascii"
        );
        key = fs.readFileSync(path.resolve(httpsProtocol, "key.pem"), "ascii");
      }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…