curl --request POST \
--url https://{region}.api.plerion.com/v1/tenant/integrations/aws \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"roleArn": "arn:aws:iam::123456789012:role/PlerionAccessRole",
"name": "Production",
"kmsKeyAccessMode": "ALL_KEYS"
}
'{
"data": {
"integrationId": "9b2e4f61-7c3a-4d8e-b015-2a6f8c9d0e47",
"accountId": "123456789012",
"name": "Production",
"roleArn": "arn:aws:iam::123456789012:role/PlerionAccessRole",
"environmentId": "3f6c2a91-8d4b-4e7f-a512-6b9e0c1d2f38",
"instanceProfileArn": "arn:aws:iam::123456789012:instance-profile/PlerionInstanceProfile",
"kmsKeyAccessMode": "SELECTED_KEYS",
"serviceAccountId": null,
"serviceAccountAccessRoleArn": null,
"serviceAccountType": null,
"status": "active",
"createdAt": "2026-12-01T04:12:33.120Z",
"updatedAt": "2026-12-01T04:12:33.120Z"
}
}{
"errors": [
{
"code": "ServiceAccountIncomplete",
"message": "serviceAccountId and serviceAccountAccessRoleArn must be sent together."
}
]
}{
"errors": [
{
"code": "ActionNotGranted",
"message": "Setting environmentId also needs AssetGroup:Modify, because it changes the environment's asset group."
}
]
}{
"errors": [
{
"code": "IntegrationAlreadyExists",
"message": "AWS account 123456789012 already has integration 9b2e4f61-7c3a-4d8e-b015-2a6f8c9d0e47 in this tenant."
}
]
}{
"errors": [
{
"code": "RoleNotAssumable",
"message": "Plerion could not assume arn:aws:iam::123456789012:role/PlerionAccessRole with this tenant's external id. A new role can take a minute or two before it can be assumed. If this persists, check the role's trust policy."
}
]
}{
"errors": [
{
"code": "EnvironmentNotApplied",
"message": "Integration 9b2e4f61-7c3a-4d8e-b015-2a6f8c9d0e47 was created, but Plerion could not put it in environment 3f6c2a91-8d4b-4e7f-a512-6b9e0c1d2f38. Import the integration, then apply again."
}
]
}Connect an AWS account
Connects an AWS account to the tenant through an IAM role you created, with no CloudFormation stack. Plerion assumes roleArn with the tenant’s external ID before it saves anything, and the role’s account is the account connected. An account from an AWS organization the tenant has not seen before is created with status pending_approval.
Requires Integration:Modify. Sending environmentId also requires AssetGroup:Modify, because it changes the environment’s asset group.
curl --request POST \
--url https://{region}.api.plerion.com/v1/tenant/integrations/aws \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"roleArn": "arn:aws:iam::123456789012:role/PlerionAccessRole",
"name": "Production",
"kmsKeyAccessMode": "ALL_KEYS"
}
'{
"data": {
"integrationId": "9b2e4f61-7c3a-4d8e-b015-2a6f8c9d0e47",
"accountId": "123456789012",
"name": "Production",
"roleArn": "arn:aws:iam::123456789012:role/PlerionAccessRole",
"environmentId": "3f6c2a91-8d4b-4e7f-a512-6b9e0c1d2f38",
"instanceProfileArn": "arn:aws:iam::123456789012:instance-profile/PlerionInstanceProfile",
"kmsKeyAccessMode": "SELECTED_KEYS",
"serviceAccountId": null,
"serviceAccountAccessRoleArn": null,
"serviceAccountType": null,
"status": "active",
"createdAt": "2026-12-01T04:12:33.120Z",
"updatedAt": "2026-12-01T04:12:33.120Z"
}
}{
"errors": [
{
"code": "ServiceAccountIncomplete",
"message": "serviceAccountId and serviceAccountAccessRoleArn must be sent together."
}
]
}{
"errors": [
{
"code": "ActionNotGranted",
"message": "Setting environmentId also needs AssetGroup:Modify, because it changes the environment's asset group."
}
]
}{
"errors": [
{
"code": "IntegrationAlreadyExists",
"message": "AWS account 123456789012 already has integration 9b2e4f61-7c3a-4d8e-b015-2a6f8c9d0e47 in this tenant."
}
]
}{
"errors": [
{
"code": "RoleNotAssumable",
"message": "Plerion could not assume arn:aws:iam::123456789012:role/PlerionAccessRole with this tenant's external id. A new role can take a minute or two before it can be assumed. If this persists, check the role's trust policy."
}
]
}{
"errors": [
{
"code": "EnvironmentNotApplied",
"message": "Integration 9b2e4f61-7c3a-4d8e-b015-2a6f8c9d0e47 was created, but Plerion could not put it in environment 3f6c2a91-8d4b-4e7f-a512-6b9e0c1d2f38. Import the integration, then apply again."
}
]
}Authorizations
Headers
Body
An instance profile in the same account, with no path, for scanning the account's workloads. With no service account set, it turns workload scanning on. Cannot be used with serviceAccountType PLERION_MANAGED.
^arn:aws:iam::\d{12}:instance-profile/[a-zA-Z0-9_-]{1,128}$"arn:aws:iam::123456789012:instance-profile/PlerionInstanceProfile"
Which KMS keys Plerion may use to decrypt volumes, images and Lambda code when it scans workloads. ALL_KEYS allows every key except those tagged PlerionAccess Denied. SELECTED_KEYS allows only keys tagged PlerionAccess Granted.
ALL_KEYS, SELECTED_KEYS "ALL_KEYS"
Send PLERION_MANAGED when the service account is one Plerion manages. Leave it out for a service account you manage. Needs serviceAccountId and serviceAccountAccessRoleArn, and cannot be used with instanceProfileArn. It cannot be changed later.
PLERION_MANAGED Was this page helpful?