Adding the Parameter Store extension to a profile in AWS Systems Manager Cloud Extensions
View the Parameter Store extension in the console, add it to a profile in the console or with the AWS CLI, and approve its capability.
View the extension in the Systems Manager console
To view the settings, capabilities, and versions of the extension
-
Open the Systems Manager console at https://console.aws.amazon.com/systems-manager/
. -
In the navigation pane, choose Cloud Extensions.
-
On the Extensions catalog tab, choose Parameter Store Extension.
The page shows an overview of the extension with its author and its latest version. The page also has a usage guide and three tabs:
-
Settings – The settings that you can configure, with the description, type, and default value of each setting.
-
Capabilities – What the extension can do in your resources. This extension has one capability, Call Parameter Store. The capability has the scope
ssm:GetParameterandssm:GetParameters, and it's required. -
Versions – The released versions of the extension.
The usage guide recommends the following actions after you add the extension to a profile:
-
Check the logs of the extension in CloudWatch Logs after your next invocation.
-
Review the capabilities that the extension is allowed, and clear the capabilities that you don't need.
Adding the extension to a profile
You can add the extension to a profile in the console or with the AWS CLI.
Add the extension in the console
To add the extension to a profile
-
Open the Systems Manager console at https://console.aws.amazon.com/systems-manager/
. -
In the navigation pane, choose Cloud Extensions.
-
On the Extensions catalog tab, select Parameter Store Extension, and then choose Add to profile.
-
On the Edit extension page, expand Update method, and then choose Automatic updates (recommended) or Pin to a version.
-
Under Settings, enter the Cache TTL and the Cache size, or keep the default values.
-
Review the Capabilities summary. The summary lists the Call Parameter Store capability.
-
Save your changes.
For more information about the Edit extension page, see Configuring an extension on the console.
Add the extension with the AWS CLI
To add the extension to your Cloud Extensions profile with the AWS CLI, create a profile entry:
aws cloudextensions create-profile-entry \ --profile-identifier my-application \ --extension-identifier ssm-parameter-store \ --version-policy updateStrategy=AUTOMATIC,versionSelector=1.x.x \ --execution-role arn:aws:iam::111122223333:role/ParameterStoreExtensionRole \ --approve parameterStoreRead
The version policy tracks new releases within major version 1. The IAM execution role is the role that the extension assumes when it calls Parameter Store. You can omit the --execution-role option if you set an execution role in the extension defaults of the profile.
Approving capabilities
An extension can use a capability only after you approve the capability. To list the capabilities that the extension declares, run the following command:
aws cloudextensions get-extension \ --identifier ssm-parameter-store \ --query 'configuration.capabilities'
The extension declares one AWS service capability, parameterStoreRead. The console shows the capability as Call Parameter Store. To use this extension, you must approve the capability on the profile entry. The capability allows the ssm:GetParameter and ssm:GetParameters operations. The extension can then call Parameter Store to read parameter values by name, one at a time or up to 10 at a time. The capability includes Secrets Manager secrets that you reference through /aws/reference/secretsmanager/.
If you don't approve the capability, the extension returns an InternalServerError for each read. The extension also neither serves from the cache nor stores values in the cache.
For SecureString parameters, the execution role also needs the AWS Key Management Service (AWS KMS) Decrypt permission. For more information, see Approving capabilities.