Prerequisites and required IAM permissions for the AWS AppConfig extension in AWS Systems Manager Cloud Extensions
Review the resources and IAM permissions that you need before you use the AWS AppConfig extension.
Prerequisites
Before you use the AWS AppConfig extension:
-
Create an AWS AppConfig application, an environment, and a configuration profile, and deploy a configuration version to the environment. For the steps, see Creating configuration data with AWSAppConfig in the AWS AppConfig User Guide. To use
GetFlag, the configuration profile must have the typeAWS.AppConfig.FeatureFlags. -
Create an IAM execution role that has permissions to retrieve the configurations.
-
Approve the capability of the extension on the profile entry. For the steps, see Approving capabilities.
Required IAM permissions
The AWS AppConfig extension needs an execution role with the following IAM permissions:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "appconfig:StartConfigurationSession", "appconfig:GetLatestConfiguration" ], "Resource": "arn:aws:appconfig:region:account-id:application/application-id/environment/environment-id/configuration/configuration-profile-id" } ] }
The role needs both actions on each configuration that your application reads, in the AWS Region that the extension uses. Scope Resource to the configurations that the extension reads. Use "*" only for testing.
These permissions apply to the role that the extension uses. That role is the execution role of the profile entry. If the entry has no execution role, the extension uses the execution role of the profile. If neither has an execution role, the extension uses the credentials of the runtime.