unit block. Each unit maps 1:1 to a Pulumi provider resource.
Resource Addresses
Resources are addressed using dot notation:unit.aws_s3_bucket_v2.assetsunit.aws_rds_instance.dbunit.google_storage_bucket.media
Resource Outputs
Every cloud resource has output attributes — values known only after the resource is created. Access them with the~ prefix:
Providers and Resource Types
ubx uses the same resource type names as Terraform/Pulumi, in snake_case:| Provider | Example type |
|---|---|
| AWS | aws_rds_instance, aws_s3_bucket_v2, aws_vpc |
| GCP | google_storage_bucket, google_sql_database_instance |
| Azure | azurerm_resource_group, azurerm_storage_account |
| Kubernetes | Used via deploy and sync blocks |
ubx schema list to see all registered types. Run ubx docs <type> --list to see fields.
Viewing Resource Schema
Resource Lifecycle
Resources go through these states:- Planned —
ubx planshows what will happen - Created —
ubx applyprovisions the resource - Updated —
ubx applyafter attribute changes - Refreshed —
ubx refreshsyncs state with actual cloud - Destroyed —
ubx destroyremoves the resource
