

# 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.

**Topics**
+ [Prerequisites](#cloud-extensions-ext-appconfig-prerequisites-prerequisites)
+ [Required IAM permissions](#cloud-extensions-ext-appconfig-prerequisites-required-iam-permissions)

## Prerequisites
<a name="cloud-extensions-ext-appconfig-prerequisites-prerequisites"></a>

Before you use the AWS AppConfig extension:

1. 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](https://docs.aws.amazon.com/appconfig/latest/userguide/creating-feature-flags-and-configuration-data.html) in the *AWS AppConfig User Guide*. To use `GetFlag`, the configuration profile must have the type `AWS.AppConfig.FeatureFlags`.

1. Create an IAM execution role that has permissions to retrieve the configurations.

1. Approve the capability of the extension on the profile entry. For the steps, see [Approving capabilities](cloud-extensions-ext-appconfig-add-to-profile.md#cloud-extensions-ext-appconfig-add-to-profile-approving-capabilities).

## Required IAM permissions
<a name="cloud-extensions-ext-appconfig-prerequisites-required-iam-permissions"></a>

The AWS AppConfig extension needs an execution role with the following IAM permissions:

```json
{
  "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.