Chapter 541: getOrCreateBucket()
Core Idea
<ExperimentalBadge> <p> Cloud Run is in <a href="/docs/cloudrun/status">Alpha status and not actively being developed.
Key Concepts
- Arguments
- region
- updateBucketState?
- Return value
- bucketName
- alreadyExisted
- See also
Code Examples
const {bucketName, alreadyExisted} = await getOrCreateBucket({
region: 'us-east1',
});
console.log(bucketName); // "remotioncloudrun-32df3p"
- What it demonstrates: Usage pattern for getOrCreateBucket() from the official docs.
Key Takeaways
- Understand arguments when working with getOrCreateBucket().
- Understand region when working with getOrCreateBucket().
- Understand updatebucketstate? when working with getOrCreateBucket().
- Understand return value when working with getOrCreateBucket().
- Understand bucketname when working with getOrCreateBucket().
Connects To
- api: related page in the Cloud Run (@remotion/cloudrun) section.
- Checklist: related page in the Cloud Run (@remotion/cloudrun) section.
- cli: related page in the Cloud Run (@remotion/cloudrun) section.