Reading Config Elements Method

Ifs this a good/reasonable way of reading a bunch of config elements?
    const { bucket, region, accessKeyId, secretAccessKey } = yield* Effect.all({
      bucket: Config.string("S3_BUCKET"),
      region: Config.string("AWS_REGION"),
      accessKeyId: Config.string("AWS_ACCESS_KEY_ID"),
      secretAccessKey: Config.string("AWS_SECRET_ACCESS_KEY"),
    });
Was this page helpful?