AmazonRDSCustomInstanceProfileRolePolicy
Summary
Allows Amazon RDS Custom to perform various automation actions and database management tasks through an EC2 instance profile.
Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.
Identity
- ARN
arn:aws:iam::aws:policy/AmazonRDSCustomInstanceProfileRolePolicy- Default version
- v4
- Created
- Last edited
- Services
- cloudwatch, ec2, ec2messages, events, kms, logs, s3, secretsmanager, sqs, ssm, ssmmessages
Control-plane actions (34)
By access level: 2 List, 10 Read, 2 Tagging, 20 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| EC2 | 5 of 834 | 1 Tagging, 4 Write; 5 restricted, 5 conditional | ec2:AssignPrivateIpAddresses, ec2:CreateSnapshot, ec2:CreateSnapshots, ec2:CreateTags, ec2:UnassignPrivateIpAddresses |
| EC2 Messages | All 6 actions (see the EC2 Messages page) | 2 Read, 4 Write; 0 restricted, 0 conditional | ec2messages:AcknowledgeMessage, ec2messages:DeleteMessage, ec2messages:FailMessage, ec2messages:GetEndpoint, ec2messages:GetMessages, ec2messages:SendReply |
| KMS | 2 of 58 | 2 Write; 2 restricted, 2 conditional | kms:Decrypt, kms:GenerateDataKey |
| CloudWatch Logs | 5 of 133 | 1 List, 4 Write; 5 restricted, 0 conditional | logs:CreateLogGroup, logs:CreateLogStream, logs:DescribeLogStreams, logs:PutLogEvents, logs:PutRetentionPolicy |
| S3 | 1 of 155 | 1 List; 1 restricted, 1 conditional | s3:ListBucketMultipartUploads |
| Secrets Manager | 4 of 27 | 2 Read, 1 Tagging, 1 Write; 4 restricted, 4 conditional | secretsmanager:CreateSecret, secretsmanager:DescribeSecret, secretsmanager:GetSecretValue, secretsmanager:TagResource |
| SQS | 4 of 20 | 2 Read, 2 Write; 4 restricted, 4 conditional | sqs:DeleteMessage, sqs:GetQueueUrl, sqs:ReceiveMessage, sqs:SendMessage |
| Systems Manager | 5 of 164 | 4 Read, 1 Write; 3 restricted, 1 conditional | ssm:DescribeDocument, ssm:GetDocument, ssm:GetManifest, ssm:PutConfigurePackageResult, ssm:UpdateInstanceInformation |
| SSM Messages | 2 of 4 | 2 Write; 0 restricted, 0 conditional | ssmmessages:CreateControlChannel, ssmmessages:OpenControlChannel |
EC2: 5 actions
- ec2:AssignPrivateIpAddresses (Write)
- ec2:CreateSnapshot (Write)
- ec2:CreateSnapshots (Write)
- ec2:CreateTags (Tagging)
- ec2:UnassignPrivateIpAddresses (Write)
KMS: 2 actions
- kms:Decrypt (Write)
- kms:GenerateDataKey (Write)
CloudWatch Logs: 5 actions
- logs:CreateLogGroup (Write)
- logs:CreateLogStream (Write)
- logs:DescribeLogStreams (List)
- logs:PutLogEvents (Write)
- logs:PutRetentionPolicy (Write)
S3: 1 actions
- s3:ListBucketMultipartUploads (List)
Secrets Manager: 4 actions
- secretsmanager:CreateSecret (Write)
- secretsmanager:DescribeSecret (Read)
- secretsmanager:GetSecretValue (Read)
- secretsmanager:TagResource (Tagging)
SQS: 4 actions
- sqs:DeleteMessage (Write)
- sqs:GetQueueUrl (Read)
- sqs:ReceiveMessage (Read)
- sqs:SendMessage (Write)
Systems Manager: 5 actions
- ssm:DescribeDocument (Read)
- ssm:GetDocument (Read)
- ssm:GetManifest (Read)
- ssm:PutConfigurePackageResult (Read)
- ssm:UpdateInstanceInformation (Write)
SSM Messages: 2 actions
- ssmmessages:CreateControlChannel (Write)
- ssmmessages:OpenControlChannel (Write)
Data-plane actions (8)
By access level: 2 List, 2 Read, 4 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| CloudWatch | 1 of 5 | 1 Write; 1 restricted, 1 conditional | cloudwatch:PutMetricData |
| EventBridge | 1 of 3 | 1 Write; 1 restricted, 0 conditional | events:PutEvents |
| S3 | 6 of 25 | 2 List, 2 Read, 2 Write; 6 restricted, 6 conditional | s3:AbortMultipartUpload, s3:ListBucketVersions, s3:ListMultipartUploadParts, s3:getObject, s3:getObjectVersion, s3:putObject |
CloudWatch: 1 actions
- cloudwatch:PutMetricData (Write)
EventBridge: 1 actions
- events:PutEvents (Write)
S3: 6 actions
- s3:AbortMultipartUpload (Write)
- s3:GetObject (Read)
- s3:GetObjectVersion (Read)
- s3:ListBucketVersions (List)
- s3:ListMultipartUploadParts (List)
- s3:PutObject (Write)
Excluded and conditional actions
No patterns are excluded by NotAction or Deny statements.
Resource scope and attachment
Resource scope across granted actions: mixed.
Can be attached: Yes, to users, groups and roles.
Why this tier
- Grants 26 write, tagging or permissions-management actions, short of full control of any service.
- Grants data-plane write actions on a data store, but only for scoped resources or under conditions.
Guidance
Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.
Related policies
Same service
- AccessAnalyzerServiceRolePolicy
- AdministratorAccess-AWSElasticBeanstalk
- AIDevOpsReleaseManagementVPCPolicy
- AIOpsOperatorAccess
- AlexaForBusinessGatewayExecution
- AmazonAPIGatewayPushToCloudWatchLogs
- AmazonAppFlowFullAccess
- AmazonAppStreamServiceAccess
Same domain
Frequently asked questions
Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.
Policy JSON
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ssmAgentPermission1",
"Effect": "Allow",
"Action": [
"ssm:UpdateInstanceInformation"
],
"Resource": "arn:aws:ec2:*:*:instance/*",
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "ssmAgentPermission2",
"Effect": "Allow",
"Action": [
"ssm:GetManifest",
"ssm:PutConfigurePackageResult"
],
"Resource": "*"
},
{
"Sid": "ssmAgentPermission3",
"Effect": "Allow",
"Action": [
"ssm:GetDocument",
"ssm:DescribeDocument"
],
"Resource": "arn:aws:ssm:*:*:document/*"
},
{
"Sid": "ssmAgentPermission4",
"Effect": "Allow",
"Action": [
"ssmmessages:CreateControlChannel",
"ssmmessages:OpenControlChannel"
],
"Resource": "*"
},
{
"Sid": "ssmAgentPermission5",
"Effect": "Allow",
"Action": [
"ec2messages:AcknowledgeMessage",
"ec2messages:DeleteMessage",
"ec2messages:FailMessage",
"ec2messages:GetEndpoint",
"ec2messages:GetMessages",
"ec2messages:SendReply"
],
"Resource": "*"
},
{
"Sid": "createEc2SnapshotPermission1",
"Effect": "Allow",
"Action": [
"ec2:CreateSnapshot",
"ec2:CreateSnapshots"
],
"Resource": [
"arn:aws:ec2:*:*:volume/*"
],
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "createEc2SnapshotPermission2",
"Effect": "Allow",
"Action": [
"ec2:CreateSnapshot",
"ec2:CreateSnapshots"
],
"Resource": [
"arn:aws:ec2:*::snapshot/*"
],
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "createEc2SnapshotPermission3",
"Effect": "Allow",
"Action": "ec2:CreateSnapshots",
"Resource": [
"arn:aws:ec2:*:*:instance/*"
],
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "createTagForEc2SnapshotPermission",
"Effect": "Allow",
"Action": "ec2:CreateTags",
"Resource": "*",
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
],
"ec2:CreateAction": [
"CreateSnapshot",
"CreateSnapshots"
]
}
}
},
{
"Sid": "rdsCustomS3ObjectPermission",
"Effect": "Allow",
"Action": [
"s3:putObject",
"s3:getObject",
"s3:getObjectVersion",
"s3:AbortMultipartUpload",
"s3:ListMultipartUploadParts"
],
"Resource": [
"arn:aws:s3:::do-not-delete-rds-custom-*/*"
],
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "rdsCustomS3BucketPermission",
"Effect": "Allow",
"Action": [
"s3:ListBucketVersions",
"s3:ListBucketMultipartUploads"
],
"Resource": [
"arn:aws:s3:::do-not-delete-rds-custom-*"
],
"Condition": {
"StringEquals": {
"aws:ResourceAccount": "${aws:PrincipalAccount}"
}
}
},
{
"Sid": "readSecretsFromCpPermission",
"Effect": "Allow",
"Action": [
"secretsmanager:GetSecretValue",
"secretsmanager:DescribeSecret"
],
"Resource": [
"arn:aws:secretsmanager:*:*:secret:do-not-delete-rds-custom-*",
"arn:aws:secretsmanager:*:*:secret:rds-custom!*"
],
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": [
"custom-oracle",
"custom-sqlserver",
"custom-oracle-rac"
]
}
}
},
{
"Sid": "createSecretsOnDpPermission",
"Effect": "Allow",
"Action": [
"secretsmanager:CreateSecret",
"secretsmanager:TagResource"
],
"Resource": [
"arn:aws:secretsmanager:*:*:secret:do-not-delete-rds-custom-*"
],
"Condition": {
"StringLike": {
"aws:RequestTag/AWSRDSCustom": "custom-oracle-rac"
}
}
},
{
"Sid": "publishCwMetricsPermission",
"Effect": "Allow",
"Action": "cloudwatch:PutMetricData",
"Resource": "*",
"Condition": {
"StringEquals": {
"cloudwatch:namespace": [
"rdscustom/rds-custom-sqlserver-agent",
"RDSCustomForOracle/Agent"
]
}
}
},
{
"Sid": "putEventsToEventBusPermission",
"Effect": "Allow",
"Action": "events:PutEvents",
"Resource": "arn:aws:events:*:*:event-bus/default"
},
{
"Sid": "cwlUploadPermission",
"Effect": "Allow",
"Action": [
"logs:PutRetentionPolicy",
"logs:PutLogEvents",
"logs:DescribeLogStreams",
"logs:CreateLogStream",
"logs:CreateLogGroup"
],
"Resource": "arn:aws:logs:*:*:log-group:rds-custom-instance-*"
},
{
"Sid": "sendMessageToSqsQueuePermission",
"Effect": "Allow",
"Action": [
"sqs:SendMessage",
"sqs:ReceiveMessage",
"sqs:DeleteMessage",
"sqs:GetQueueUrl"
],
"Resource": [
"arn:aws:sqs:*:*:do-not-delete-rds-custom-*"
],
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": "custom-sqlserver"
}
}
},
{
"Sid": "managePrivateIpOnEniPermission",
"Effect": "Allow",
"Action": [
"ec2:AssignPrivateIpAddresses",
"ec2:UnassignPrivateIpAddresses"
],
"Resource": "arn:aws:ec2:*:*:network-interface/*",
"Condition": {
"StringLike": {
"aws:ResourceTag/AWSRDSCustom": "custom-oracle-rac"
}
}
},
{
"Sid": "kmsPermissionWithSecret",
"Effect": "Allow",
"Action": [
"kms:Decrypt",
"kms:GenerateDataKey"
],
"Resource": "*",
"Condition": {
"ArnLike": {
"kms:EncryptionContext:SecretARN": [
"arn:aws:secretsmanager:*:*:secret:do-not-delete-rds-custom-*",
"arn:aws:secretsmanager:*:*:secret:rds-custom!*"
]
},
"StringLike": {
"kms:ViaService": "secretsmanager.*.amazonaws.com"
}
}
},
{
"Sid": "kmsPermissionWithS3",
"Effect": "Allow",
"Action": [
"kms:Decrypt",
"kms:GenerateDataKey"
],
"Resource": "*",
"Condition": {
"ArnLike": {
"kms:EncryptionContext:aws:s3:arn": "arn:aws:s3:::do-not-delete-rds-custom-*"
},
"StringLike": {
"kms:ViaService": "s3.*.amazonaws.com"
}
}
}
]
}
Version history
Current version v4, edited by AWS on 2026-02-12. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.
Attach snippets
AWS CLI
aws iam attach-role-policy --role-name ROLE_NAME --policy-arn arn:aws:iam::aws:policy/AmazonRDSCustomInstanceProfileRolePolicy
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AmazonRDSCustomInstanceProfileRolePolicy
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AmazonRDSCustomInstanceProfileRolePolicyCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AmazonRDSCustomInstanceProfileRolePolicyTerraform
resource "aws_iam_role_policy_attachment" "amazonrdscustominstanceprofilerolepolicy" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/AmazonRDSCustomInstanceProfileRolePolicy"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("AmazonRDSCustomInstanceProfileRolePolicy"),
);Sources
Pending editorial review. No editorial sources are listed yet.