Resource

See first: Juju | Resource

See also: How to manage resources

In Juju, a resource is additional content that a charm can make use of, or may require, to run.

This can be especially useful where you need to include large blobs (perhaps a database, media file, or otherwise) that may not need to be updated with the same cadence as the charm or workload itself. By keeping resources separate, you can control the lifecycle of these elements more carefully, and in some situations avoid the need for repeatedly downloading large files from Charmhub during routine upgrades/maintenance.

Resources are specified in the resources field of the metadata.yaml file. There are two types of resources: file and oci-image.