# SageMaker connector

The SageMaker connector allows you to deploy models, and create and trigger inference endpoints.
You can also fully remove the SageMaker deployment.

## Installation

To use the SageMaker connector, run the following command:

```shell
$ pip install flytekitplugins-awssagemaker
```

## Example usage

For an example query, see [SageMaker connector example usage](https://www.union.ai/docs/v1/union/integrations/connectors/sagemaker-inference-connector/sagemaker-inference-connector-example-usage-union/page.md)

## Local testing

To test an connector locally, create a class for the connector task that inherits from
[SyncConnectorExecutorMixin](https://github.com/flyteorg/flytekit/blob/1bc8302bb7a6cf4c7048a7f93627ee25fc6b88c4/flytekit/extend/backend/base_connector.py#L304)
or [AsyncConnectorExecutorMixin](https://github.com/flyteorg/flytekit/blob/1bc8302bb7a6cf4c7048a7f93627ee25fc6b88c4/flytekit/extend/backend/base_connector.py#L354).
These mixins can handle synchronous and synchronous tasks, respectively, and allow the SDK to mimic the system's behavior in calling the connector.

For more information, see [Testing connectors locally](https://www.union.ai/docs/v1/union/integrations/connectors/page.md#testing-your-connector-locally).

## Subpages

- [Deploy and serve an XGBoost model on AWS SageMaker using FastAPI](https://www.union.ai/docs/v1/union/integrations/connectors/sagemaker-inference-connector/sagemaker-inference-connector-example-usage-union/page.md)

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/integrations/connectors/sagemaker-inference-connector/_index.md
**HTML**: https://www.union.ai/docs/v1/union/integrations/connectors/sagemaker-inference-connector/
