Align Artifact Registry configuration—format, replication, cleanup
policies—between teams by documenting them once in the API definitions.
Registries can back Docker/OCI images, Maven, npm, or generic artifacts.
apiVersion:gcp/v1kind:ArtifactRegistrymetadata:name:shared-imagesspec:project:sample-projectlocation:australia-southeast1format:DOCKERdescription:Golden base imagesdockerConfig:immutableTags:truecleanupPolicyDryRun:falsecleanupPolicies:-id:keep-releaseaction:KEEPcondition:tagState:TAGGEDtagPrefix:release-olderThanDays:60
resource"google_artifact_registry_repository""shared"{repository_id="shared-images"project="sample-project"location="australia-southeast1"description="Golden base images"format="DOCKER"docker_config{immutable_tags=true}}
The CloudFunction schema models both build- and deploy-time switches for
Functions 2nd gen, including build images, service accounts, concurrency,
and event triggers. It's ideal when you need to show YAML and HCL equivalents.
resource"google_cloudfunctions2_function""image"{name="gcf-image-processor"project="sample-project"location="us-central1"description="Processes new objects"build_config{runtime="nodejs20"entry_point="handler"source{storage_source{bucket="artifacts-sample-project"object="functions/image-processor.zip"}}}service_config{max_instance_count=10min_instance_count=0available_memory="1024M"timeout_seconds=60service_account_email="gcf-runtime@sample-project.iam.gserviceaccount.com"}event_trigger{event_type="google.cloud.storage.object.v1.finalized"trigger_region="us-central1"event_filters{attribute="bucket"value="raw-images"}}}
ComputeInstance resources expose the same knobs Terraform offers for
Google Compute Engine, but through babyctl-native YAML. That includes
boot disks, attached GPUs, metadata, and network interfaces.