What is AWS Systems Manager Cloud Extensions?
AWS Systems Manager Cloud Extensions extends AWS service capabilities by running logic that AWS builds and maintains directly in your compute environments. Cloud Extensions includes functional components that run alongside your applications, called extensions. Your application sends its API calls for an AWS service to the extension. The extension answers the calls locally instead of sending them over the network.
Each extension works with one AWS service, such as AWS Systems Manager Parameter Store, AWS Secrets Manager, or AWS AppConfig. An extension follows the latest best practices of that service, so that you don't have to build that logic yourself. These practices cover caching, handling request limits, grouping requests into batches, and continuing to work when the service has a problem.
How Cloud Extensions works
Cloud Extensions has three parts:
- Extensions
-
Each extension works with one AWS service. The extension saves data in a cache, refreshes the data in the background, and applies other optimizations. As a result, your API calls finish in microseconds instead of the time that a network trip takes. The AWS service team that owns the service builds and maintains each extension. The extension uses the team's knowledge about best practices, caching, and error handling. AWS publishes each extension as a versioned release. After AWS publishes a release, the release doesn't change.
- Cloud Extensions runtime (aws-cloudx-rt)
-
A small program that runs on your compute. The runtime loads your extensions, applies the permissions that you approve, updates the extensions, and sends telemetry to AWS. Telemetry is operational data about the runtime. AWS provides the runtime as an AWS Lambda layer and as a container image in Amazon Elastic Container Registry (Amazon ECR).
- Cloud Extensions API
-
The control plane, which is the part of the service that you use to manage your profiles and profile entries. The API uses REST with JSON payloads. You sign requests with AWS Signature Version 4 (SigV4). You can call the API with the AWS CLI and the AWS SDKs.
Key concepts
For definitions of the key terms, see Concepts and terms for AWS Systems Manager Cloud Extensions.
Key benefits
- Better performance
-
Extensions run in the same environment as your application. They answer many operations locally that otherwise need a network trip to AWS. A cached answer returns in microseconds. A typical API call takes 50 to 200 milliseconds.
- Built-in best practices
-
The service team that owns each AWS service builds the extension for that service. The extension follows the team's recommended practices. These practices cover caching, handling request limits, grouping requests into batches, managing credentials, and continuing to work when the service has a problem.
- Automatic updates
-
With the automatic update strategy, the runtime moves an extension to newer versions that match the version selector. You don't update the extension manually. Alternatively, you can keep an extension on one version.
- Resilience
-
An extension that caches data keeps serving the data when the network or the AWS service isn't available for a short time. Your applications keep working.
- Calls over HTTP on localhost
-
Your application calls an extension with HTTP requests to the local endpoint of the runtime. You don't need a separate Cloud Extensions library.
- One way to operate all extensions
-
Standalone agents each have their own installation, configuration, and upgrade steps. With Cloud Extensions, you manage all extensions through one runtime and one set of tools.
Use cases
Cloud Extensions works well in the following situations:
-
Frequent reads – Your application reads the same configuration data, secrets, or service metadata many times. Local caching helps.
-
Low latency – Even a small network delay affects your users.
-
Request batching – Your workload benefits from combining, deduplicating, or compressing requests before it sends them to AWS.
-
Network problems – Your application must keep working when the network has problems.
-
Best practices without custom code – You want production-ready AWS integration without building your own logic.
How to get started
You can set up Cloud Extensions on the Systems Manager console, with the AWS CLI, or with an AI agent. For more information, see Getting started with AWS Systems Manager Cloud Extensions.
The setup has the following steps:
-
Install the runtime – Add the runtime to your Lambda functions as a layer, or pull the container image for your containerized applications.
-
Choose an extension – Find the extension in the Extension catalog, or list the available extensions with the AWS CLI. Review the settings, capabilities, and interfaces that the extension declares.
-
Create an IAM execution role – Create an IAM role. Attach permissions policies that allow the AWS actions that the extension needs. Add a trust policy that allows the role that the runtime runs as to assume the role. The extension assumes this role when it calls AWS services.
-
Add the extension to a profile – Create a profile entry in a profile. Choose a version policy, and provide values for the settings of the extension.
-
Approve capabilities – Review the capabilities that the extension declares. Approve the capabilities that your use case needs.
-
Connect the profile to your resources – Point each Lambda function or container to the profile that you want it to use. Many resources can share one profile. You might also need to adjust permissions for your extensions.
-
Secure the runtime endpoint – By default, callers sign requests with the AWS credentials that the runtime has. You can instead use an extension key, or turn authentication off if you trust every process that can reach localhost.
-
Call extensions from your code – Send HTTP requests to the local endpoint of the runtime.
The Cloud Extensions runtime downloads, starts, updates, and monitors your extensions automatically.
For more information about profiles and security, see Working with AWS Systems Manager Cloud Extensions profiles and Security in AWS Systems Manager Cloud Extensions.
Supported AWS Regions
For the AWS Regions where Cloud Extensions is available, and for the endpoints of each Region, see Regions and endpoints for AWS Systems Manager Cloud Extensions.
Pricing
You don't pay an additional charge for the Cloud Extensions service, the runtime, or the extensions. You continue to pay for the AWS services that you use. For example, if an extension reads from Parameter Store, standard Parameter Store charges apply to those API calls. For pricing of an individual AWS service, see the documentation of that service. Because the extensions cache what they read, an application usually makes fewer calls to those services than it makes when it calls them directly. The extensions can lower those costs.
Related services
- AWS Lambda layers
-
A way to add tools to Lambda functions. You can add Cloud Extensions to a function as a Lambda layer.
- AWS Systems Manager Agent (SSM Agent)
-
An agent that lets Systems Manager update, manage, and configure managed nodes. Cloud Extensions is a separate capability. It runs service logic locally.