Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer API Key. For example, "Bearer {Tenant API Key}"

Headers

Authorization
string
required

Bearer API Key. For example, "Bearer {Tenant API Key}"

Content-Type
string

application/json

Body

application/json
roleArn
string
required

The IAM role Plerion assumes, with the tenant's external ID, to read the account. Its account is the account connected.

Pattern: ^arn:aws:iam::\d{12}:role/.+$
Example:

"arn:aws:iam::123456789012:role/PlerionAccessRole"

name
string

The integration's name. Left out, it is the account's IAM alias, or the account ID when it has none, and the account's name in AWS Organizations can replace it later. A name you send is kept.

Required string length: 1 - 64
Example:

"Production"

environmentId
string<uuid>

The environment to put the integration in. Requires AssetGroup:Modify.

Example:

"3f6c2a91-8d4b-4e7f-a512-6b9e0c1d2f38"

instanceProfileArn
string

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.

Pattern: ^arn:aws:iam::\d{12}:instance-profile/[a-zA-Z0-9_-]{1,128}$
Example:

"arn:aws:iam::123456789012:instance-profile/PlerionInstanceProfile"

kmsKeyAccessMode
enum<string>

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.

Available options:
ALL_KEYS,
SELECTED_KEYS
Example:

"ALL_KEYS"

serviceAccountId
string

The AWS account ID of the service account that scans this account's workloads. Send it with serviceAccountAccessRoleArn.

Pattern: ^[0-9]{12}$
Example:

"210987654321"

serviceAccountAccessRoleArn
string

The role in this account that the service account uses. It must be in the account roleArn is in. Send it with serviceAccountId.

Pattern: ^arn:aws:iam::\d{12}:role/.+$
Example:

"arn:aws:iam::123456789012:role/PlerionServiceAccountAccessRole"

serviceAccountType
enum<string>

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.

Available options:
PLERION_MANAGED

Response

The integration as saved

data
object

An AWS account integration.