# juju_charm (Data Source)

A data source that fetches charm metadata from CharmHub, including the resolved revision, the names and interfaces of all integrations the charm provides or requires.

<!-- schema generated by tfplugindocs -->

## Schema

### Required

- `charm` (String) The name of the charm to look up.

### Optional

- `architecture` (String) The architecture of the charm, e.g. “amd64”. Defaults to “amd64” when not set.
- `base` (String) The OS base for the charm in the form os@channel, e.g. “ubuntu@22.04”.
- `channel` (String) The channel to resolve, e.g. “3/stable”. Required when revision is set.
- `revision` (Number) The revision of the charm to fetch.
- `store_url` (String) Base URL of the charm store. Defaults to [https://charmhub.io/](https://charmhub.io/).

### Read-Only

- `provides` (Map of String) Integrations provided by the charm. Key is the endpoint name, value is the interface name.
- `requires` (Map of String) Integrations required by the charm. Key is the endpoint name, value is the interface name.
- `resources` (Map of String) OCI/file resources for the charm. Key is the resource name, value is the revision number.
