![[New Feature] AWS Systems Manager Cloud Extensions, Which Can Speed Up Parameter Retrieval in Lambda and Container Environments, Has Arrived #AWSreInvent](https://devio2024-media.developers.io/image/upload/f_auto,q_auto/c_limit,w_1200/v1796065643/eyecatch/dlg5ttmg1mm8clcwzkmp.png)
[New Feature] AWS Systems Manager Cloud Extensions, Which Can Speed Up Parameter Retrieval in Lambda and Container Environments, Has Arrived #AWSreInvent
This page has been translated by machine translation. View original
I'm Ashizawa.
During AWS re:Invent 2026, an update to the new AWS Systems Manager feature "Cloud Extensions" was announced.
In this article, I'll introduce an overview and explanation of the new feature, along with how it looked when I actually tried it.
Overview
AWS Systems Manager Cloud Extensions is a feature of Systems Manager (abbreviated as SSM below) that runs logic built by AWS directly inside your own compute environment.
The logic is implemented as extensions, and runs in compute environments such as Lambda functions and OCI-compliant containers (ECS, EKS, on-premises, etc.).
At the moment, extensions are provided for three AWS services: SSM Parameter Store, Secrets Manager, and AppConfig.
The application sends requests to Cloud Extensions, and if the data is cached, it responds from the local cache, so processing is faster.
What's good about it
- There are no additional charges other than the usage fees of the AWS services that the extension calls.
- It is available in all AWS commercial Regions, including the Tokyo Region.
- Best practices for each service, such as caching, handling of request limits, batching of requests, and continuing to operate when there is a problem with the service, are included in the extensions.
- Extension settings can be grouped into profiles. Multiple functions and containers can share a single profile.
- You can choose how extensions are updated (automatic updates or pinning to a specific version).
- The authentication method can be set per extension, and an execution role can be assigned, so you can narrow down the scope of permissions granted.
- The authentication method for the target AWS service can be chosen from options such as the compute environment's execution role.
Comparison with the AWS Parameters and Secrets Lambda Extension
Some of you may already know this, but the AWS Parameters and Secrets Lambda Extension, which has similar functionality, already exists.
The AWS Parameters and Secrets Lambda Extension was released in 2022.
At the time, it was an innovative feature that let you retrieve values from SSM Parameter Store and Secrets Manager from Lambda.
The functionality is similar, but I feel SSM Cloud Extensions is easier to use in terms of operations and maintainability.
I've summarized the differences from the following five perspectives.
| Perspective | AWS Parameters and Secrets Lambda Extension | SSM Cloud Extensions |
|---|---|---|
| Target environment | Lambda event function | Lambda event function OCI-compliant container environments (ECS, EKS, on-premises) |
| Permissions | Execution IAM role of the Lambda event function | Execution IAM role of the Lambda event function Other specified IAM roles SSM Cloud Extensions' own access key/secret key (not IAM) |
| Configuration method | Add "AWS-Parameters-and-Secrets-Lambda-Extension" to the Lambda layer Set values such as cache TTL in Lambda environment variables |
Create an SSM Cloud Extensions profile (cache TTL and so on are set here) Specify the SSM Cloud Extensions ARN in the Lambda layer Specify AWS_CLOUDEXTENSIONS_PROFILE in the Lambda environment variables |
| Version updates | Reconfigure the Lambda layer | Specified in the SSM Cloud Extensions profile (automatic updates or version pinning) |
| Request method | Send an HTTP GET request to localhost without using the SDK | Change the endpoint of the AWS SDK client to localhost:5333/parameterstore |
About the SSM Cloud Extensions authentication flow
What I found complicated when catching up on this feature was the authentication flow.
To understand it better, let's remember how SSM Cloud Extensions is authenticated.
There are four actors.
- Lambda function (client)
- Cloud Extensions runtime
- SSM Parameter Store extension
- SSM Parameter Store
The Lambda function (client) sends a request signed with the extension key to the Cloud Extensions runtime.
The Cloud Extensions runtime verifies the signature. If there is no signature or it doesn't match, the request is rejected with a 400 AccessDeniedException.
The SSM Parameter Store extension returns the value from the cache if there is a fresh one.
If there is no cache or it is stale, the SSM Parameter Store extension retrieves the value from SSM Parameter Store using its own execution role.
Here it is as a Mermaid diagram.
Note that these diagrams and explanations are my own reinterpretation and summary of the authentication flow based on the official documentation, and I have not verified them on actual machines to ensure accuracy. Also, the Mermaid diagram and explanations themselves were not provided by AWS. When an official explanation is published on the AWS Blog or elsewhere, I will replace them with the correct information.
Trying it out
Enough desk research; I actually tried SSM Cloud Extensions.
In advance, I created an SSM Parameter Store parameter and a Lambda function that reads that parameter.
This function retrieves the value from SSM Parameter Store by executing GetParameter directly from the SDK. When test-run from the console, it returns the value and the time taken to read it (param_ms) as they are, and outputs param_ms to CloudWatch Logs.
To access SSM Parameter Store from Lambda, I specified an IAM role with the ssm:GetParameter permission as the Lambda function's execution role.
Here is a diagram of the above.
Here is the code used in the Lambda event function.
import json
import os
import time
import boto3
from botocore.config import Config
ssm = boto3.client("ssm", config=Config(retries={"mode": "standard"}))
PARAM = os.environ["LAB_PARAM"]
COLD = True
def lambda_handler(event, context):
global COLD
# Marker for whether this is the first invocation of the execution environment (cold start)
cold = COLD
COLD = False
t0 = time.perf_counter()
res = ssm.get_parameter(Name=PARAM)
ms = (time.perf_counter() - t0) * 1000
# Do not log the value (only the time)
print(json.dumps({"cold_start": cold, "param_ms": round(ms, 3)}))
# Return it so the test output shows the value was retrieved (a value for verification; do not use secret values)
return {"name": PARAM, "value": res["Parameter"]["Value"], "version": res["Parameter"]["Version"], "param_ms": round(ms, 3)}
When the function runs, it uses the SDK to retrieve the value of the SSM parameter key LAB_PARAM and measures the time taken with time.perf_counter().
The intent of measuring the execution time is to confirm that, with the Cloud Extensions settings described later, the cache takes effect and the execution time is reduced. The caching feature itself is also provided by the existing AWS Parameters and Secrets Lambda Extension, so it is nothing new in itself.
Also, Lambda event functions have the concepts of cold start and warm start, and on the first execution, which is a cold start, the execution takes longer because of things like establishing connections.
To tell whether the execution time is due to the cache or to a cold start, I created a variable called cold and set it up so that it is easy to distinguish in logs and during tests.
Before the configuration, I ran the function 15 times in a row. I check the results by querying with CloudWatch Logs Insights.
First, the read time per run (param_ms). In Logs Insights, cold_start true is displayed as 1 and false as 0.
fields cold_start, param_ms
| filter ispresent(param_ms)
| sort @timestamp asc
| limit 50
cold_start: 1 | param_ms: 87.071
cold_start: 0 | param_ms: 23.729
cold_start: 0 | param_ms: 33.962
cold_start: 0 | param_ms: 30.567
cold_start: 0 | param_ms: 30.233
cold_start: 0 | param_ms: 29.996
cold_start: 0 | param_ms: 31.063
cold_start: 0 | param_ms: 33.011
cold_start: 0 | param_ms: 30.411
cold_start: 0 | param_ms: 20.172
cold_start: 0 | param_ms: 29.905
cold_start: 0 | param_ms: 20.375
cold_start: 0 | param_ms: 29.371
cold_start: 0 | param_ms: 32.682
cold_start: 0 | param_ms: 24.119
Only the first run is a cold start (cold_start: 1), and the second and later runs are warm starts (cold_start: 0).
You can see that the execution time is long on the initial cold start and less than half on warm starts.
I'll set up the new feature "AWS Systems Manager Cloud Extensions" on this Lambda event function and see how things such as execution speed change.
Initial setup of SSM Cloud Extensions
Select Cloud Extensions in the left sidebar of the AWS SSM management console.

On the extension catalog tab, select AWS Systems Manager Parameter Store and click Add to profile.

Under Choose a profile, since this is a new creation, select New Profile. For the name under Detail, I entered ssm-cloud-extensions-demo, a common prefix for the resources in this verification. Click Next.

Under Configure extension, you configure the detailed settings of the extension.
For Update Method, I selected the recommended value Latest (recommended). Under Setting you can choose the cache TTL and cache size, but this time I left them at the defaults.
The Capabilities summary lists the APIs to which permissions are granted.
- ssm:GetParameter
- ssm:GetParameters
The former is used to retrieve a single parameter, and the latter is used to retrieve multiple parameters, up to 10.

I was curious about version updates, so let's dig deeper.
Some of you may be reminded of the tagging strategy for ECR when you hear "Latest." However, the Latest setting in this feature is different: it means automatically update for minor version and patch updates, but not for major version updates. It's the same as RDS's "automatic minor version upgrade."
The other option, Specific version, is a setting that pins the version. At present there was only one choice, 1.0.0.

Details about version updates are described on the following page of the official documentation.
Next, under Set runtime settings, you configure the authentication settings for the runtime.
It will be easier to understand if you read the section "About the SSM Cloud Extensions authentication flow" in this article beforehand.
Note that the runtime here does not seem to refer to a compute execution environment such as a Lambda function, but to the environment in which Cloud Extensions runs the SSM Parameter Store extension.

There are three choices for Authentication.
- IAM credentials
- Access key
- None
Here you choose the authentication method for calling the Parameter Store extension from SSM Cloud Extensions.
If you choose IAM credentials, calls to the extension are authenticated using the permissions of the IAM role associated with the SSM Cloud Extensions runtime.
If you choose Access key, an access key and secret key issued uniquely by SSM Cloud Extensions are used for the authentication call. It seems to be used when there are multiple IAM roles within the same execution environment.
If you choose None, the Parameter Store extension can be called without authentication. Unless there is a special reason, you probably shouldn't use it.
This time I chose IAM credentials.

Under Execution Role, you can specify the execution role of SSM Cloud Extensions.
If you select Compute resource's role, the same IAM role that is assigned to the compute resource on which the app runs (Lambda in this case) is used.
If you select <role name>, you can choose another IAM role unrelated to the compute resource.
This time I specified Compute resource's role.

Finally, check what you've entered so far and click Create profile to complete the setup.

"Created profile ssm-cloud-extensions-demo" is displayed in green at the top, and the Extension now appears at the bottom of the screen.

This completes the initial setup, but let's first get the Cloud Extensions ARN that we'll use in the next step.
The Cloud Extensions ARN is stored in a public parameter of SSM Parameter Store.
On the Public parameters tab in the SSM Parameter Store console, specify aws-cloudextensions in the box at the top right.
Two ARNs are displayed as public parameters, so choose according to the architecture of the target compute resource.
/aws/service/aws-cloudextensions/lambda-layer-arm64/aws/service/aws-cloudextensions/lambda-layer-x86_64

This time I'm using an arm64-based Lambda, so I chose the former.
Copy the value on the page you land on and make a note of it.

Changing the Lambda event function configuration
I'll change the Lambda event function's configuration to switch to the approach using the SSM Cloud Extensions Parameter Store extension.
I'll proceed with the following steps.
- Add a Lambda layer
- Add a Lambda environment variable
- Add permissions to the IAM role
- Change the Lambda code
- Retest
First, add the Lambda layer.
From the Lambda event function in the Lambda management console, open the function ssm-cloud-extensions-demo and select Edit layers at the bottom of the Code tab.


Select Add a layer, and in the popup choose Specify an ARN as the layer source.
Paste the SSM Cloud Extensions ARN you copied earlier into the ARN field.

When I clicked Verify, information such as the description of the ARN was displayed. I added it as is.

Confirm that CloudExtensions-arm64 has been added to the layers, and save.

The Lambda layer has been added.

Next, add the Lambda environment variable.
Select Edit environment variables on the Configuration tab of the function ssm-cloud-extensions-demo.

Enter the key and value.
- Key:
AWS_CLOUDEXTENSIONS_PROFILE(fixed) - Value: The Cloud Extensions profile name (depends on your environment)
This time, I entered ssm-cloud-extensions-demo as the value.

Next, change the permissions of the Lambda event function's execution role.
Because cloudextensions:SyncState must be allowed, I changed the IAM role settings and newly added the following inline policy.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "cloudextensions:SyncState",
"Resource": "*"
}
]
}
As of 15:30 on 2026/12/1, a syntax error appeared, probably because the JSON validation in the IAM management console does not yet support the new service.

When I ran an AWS CLI command from CloudShell, it completed successfully without errors.
aws iam put-role-policy \
--role-name ssm-cloud-extensions-demo-role \
--policy-name ssm-cloud-extensions-demo-sync-state \
--policy-document '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"cloudextensions:SyncState","Resource":"*"}]}'
I named the policy ssm-cloud-extensions-demo-sync-state.
Finally, change the following part of the Lambda event function and redeploy.
-ssm = boto3.client("ssm", config=Config(retries={"mode": "standard"}))
+# The extension provides the SSM API on a local port of the runtime
+ENDPOINT_URL = "http://localhost:5333/parameterstore"
+ssm = boto3.client("ssm", endpoint_url=ENDPOINT_URL, config=Config(retries={"mode": "standard"}))
http://localhost:5333/parameterstore, specified in ENDPOINT_URL, refers to the SSM Cloud Extensions runtime in the Lambda layer. The SDK's destination has been changed from SSM Parameter Store to the SSM Cloud Extensions runtime.
This is where the caching layer using the SSM Parameter Store extension comes in.
For the initial setup after startup, the SSM Cloud Extensions profile is accessed using the IAM role. For that reason, I granted the Lambda execution role permission to execute cloudextensions:SyncState.
Here is a diagram of the flow after the change.
Here is the full code after the change.
import json
import os
import time
import boto3
from botocore.config import Config
# The extension provides the SSM API on a local port of the runtime
ENDPOINT_URL = "http://localhost:5333/parameterstore"
ssm = boto3.client("ssm", endpoint_url=ENDPOINT_URL, config=Config(retries={"mode": "standard"}))
PARAM = os.environ["LAB_PARAM"]
COLD = True
def lambda_handler(event, context):
global COLD
# Marker for whether this is the first invocation of the execution environment (cold start)
cold = COLD
COLD = False
t0 = time.perf_counter()
res = ssm.get_parameter(Name=PARAM)
ms = (time.perf_counter() - t0) * 1000
# Do not log the value (only the time)
print(json.dumps({"cold_start": cold, "param_ms": round(ms, 3)}))
# Return it so the test output shows the value was retrieved (a value for verification; do not use secret values)
return {"name": PARAM, "value": res["Parameter"]["Value"], "version": res["Parameter"]["Version"], "param_ms": round(ms, 3)}
I ran the function another 15 times and checked the results by querying with CloudWatch Logs Insights.
・実行クエリ
fields cold_start, param_ms
| filter ispresent(param_ms)
| sort @timestamp asc
| limit 50
・結果
cold_start: 1 | param_ms: 79.259
cold_start: 0 | param_ms: 2.874
cold_start: 0 | param_ms: 2.483
cold_start: 0 | param_ms: 3.11
cold_start: 0 | param_ms: 2.723
cold_start: 0 | param_ms: 2.51
cold_start: 0 | param_ms: 2.336
cold_start: 0 | param_ms: 2.369
cold_start: 0 | param_ms: 2.353
cold_start: 0 | param_ms: 2.247
cold_start: 0 | param_ms: 2.37
cold_start: 0 | param_ms: 2.553
cold_start: 0 | param_ms: 2.491
cold_start: 0 | param_ms: 2.507
cold_start: 0 | param_ms: 2.378
I compared the average execution time (param_ms) for cold starts and warm starts before and after the Cloud Extensions configuration.
| Category | Count | Before Cloud Extensions | After Cloud Extensions |
|---|---|---|---|
| Cold start | 1 | 87.071 ms | 79.259 ms |
| Warm start (average) | 14 | 28.543 ms | 2.522 ms |
The cold start execution time doesn't change much and seems to be within the margin of error, but for warm starts there is a difference of nearly 10x before and after the configuration, which suggests that the cache is having an effect.
Finally
In this article, I introduced the new AWS Systems Manager feature "Cloud Extensions."
It's a very niche feature, but if you have been using the AWS Parameters and Secrets Lambda Extension, why not consider replacing it?
I hope this article helps someone.
That's all.
