$ npm install @rollinginfra/state-store-google-objectsStore JSON state objects in Google Objects. Keys can be any valid UTF-8 string.
N.B. Google Objects do not offer transactional safety. Although Google Objects may be simpler to set up, your state may be safer to store in the Google Firestore storage
You can set up your local environment by running gcloud init and following the prompts to authenticate.
import StateStoreGoogleObjects from '@rollinginfra/state-store-google-objects';
const state = new StateStoreGoogleObjects({
googleProjectID: `YOUR_GOOGLE_PROJECT_NAME`,
bucketName: `YOUR_BUCKET_NAME`,
});