AWSCompromisedKeyQuarantineV4
Summary
Denies access to certain actions, applied by AWS in the event that an IAM user's credentials have been compromised or exposed publicly. The policy aims to limit the potential damage that may be caused by fraud-related activity leading to unauthorized charges. Do NOT remove this policy. Instead, please follow the instructions specified in the support case created for you regarding this event. AWSCompromisedKeyQuarantineV4 is an AWS managed policy.
Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.
Identity
- ARN
arn:aws:iam::aws:policy/AWSCompromisedKeyQuarantineV4- Default version
- v2
- Created
- Last edited
- Services
- None
Control-plane actions (0)
By access level: none.
This policy grants no actions in this plane.
Data-plane actions (0)
By access level: none.
This policy grants no actions in this plane.
Excluded and conditional actions
amplify:CreateBackendEnvironment(deny, statement 0): 1 matching actionsamplify:CreateDeployment(deny, statement 0): 1 matching actionsapplication-autoscaling:PutScalingPolicy(deny, statement 0): 1 matching actionsapplication-autoscaling:RegisterScalableTarget(deny, statement 0): 1 matching actionsapprunner:CreateService(deny, statement 0): 1 matching actionsapprunner:DeleteService(deny, statement 0): 1 matching actionsapprunner:ResumeService(deny, statement 0): 1 matching actionsapprunner:StartDeployment(deny, statement 0): 1 matching actionsapprunner:TagResource(deny, statement 0): 1 matching actionsapprunner:UntagResource(deny, statement 0): 1 matching actionsapprunner:UpdateService(deny, statement 0): 1 matching actionsautoscaling:CreateAutoScalingGroup(deny, statement 0): 1 matching actionsautoscaling:DeleteAutoScalingGroup(deny, statement 0): 1 matching actionsautoscaling:SetDesiredCapacity(deny, statement 0): 1 matching actionsautoscaling:UpdateAutoScalingGroup(deny, statement 0): 1 matching actionsaws-marketplace:AcceptAgreementApprovalRequest(deny, statement 0): 1 matching actionsaws-marketplace:Subscribe(deny, statement 0): 1 matching actionsbackup:DeleteBackupVault(deny, statement 0): 1 matching actionsbackup:DeleteRecoveryPoint(deny, statement 0): 1 matching actionsbedrock-mantle:ArchiveProject(deny, statement 0): 1 matching actionsbedrock-mantle:Associate*(deny, statement 0): 1 matching actionsbedrock-mantle:CallWithBearerToken(deny, statement 0): 1 matching actionsbedrock-mantle:Cancel*(deny, statement 0): 2 matching actionsbedrock-mantle:Create*(deny, statement 0): 6 matching actionsbedrock-mantle:Delete*(deny, statement 0): 4 matching actionsbedrock-mantle:Disassociate*(deny, statement 0): 1 matching actionsbedrock-mantle:Put*(deny, statement 0): 1 matching actionsbedrock-mantle:TagResource(deny, statement 0): 1 matching actionsbedrock-mantle:UntagResource(deny, statement 0): 1 matching actionsbedrock-mantle:Update*(deny, statement 0): 2 matching actionsbedrock:CallWithBearerToken(deny, statement 0): 1 matching actionsbedrock:CreateFoundationModelAgreement(deny, statement 0): 1 matching actionsbedrock:CreateModelInvocationJob(deny, statement 0): 1 matching actionsbedrock:InvokeModel(deny, statement 0): 1 matching actionsbedrock:InvokeModelWithResponseStream(deny, statement 0): 1 matching actionsbedrock:PutFoundationModelEntitlement(deny, statement 0): 1 matching actionscloudformation:DeleteStack(deny, statement 0): 1 matching actionscloudtrail:DeleteTrail(deny, statement 0): 1 matching actionscloudtrail:LookupEvents(deny, statement 0): 1 matching actionscloudtrail:StopLogging(deny, statement 0): 1 matching actionscodebuild:CreateProject(deny, statement 0): 1 matching actionsdynamodb:CreateTable(deny, statement 0): 1 matching actionsec2:AcceptReservedInstancesExchangeQuote(deny, statement 0): 1 matching actionsec2:CreateLaunchTemplateVersion(deny, statement 0): 1 matching actionsec2:CreateReservedInstancesListing(deny, statement 0): 1 matching actionsec2:ModifyLaunchTemplate(deny, statement 0): 1 matching actionsec2:PurchaseReservedInstancesOffering(deny, statement 0): 1 matching actionsec2:RequestSpotInstances(deny, statement 0): 1 matching actionsec2:RunInstances(deny, statement 0): 1 matching actionsec2:StartInstances(deny, statement 0): 1 matching actionsecr:GetAuthorizationToken(deny, statement 0): 1 matching actionsecs:CreateCluster(deny, statement 0): 1 matching actionsecs:CreateDaemon(deny, statement 0): 1 matching actionsecs:CreateExpressGatewayService(deny, statement 0): 1 matching actionsecs:CreateService(deny, statement 0): 1 matching actionsecs:CreateTaskSet(deny, statement 0): 1 matching actionsecs:ExecuteCommand(deny, statement 0): 1 matching actionsecs:RegisterDaemonTaskDefinition(deny, statement 0): 1 matching actionsecs:RegisterTaskDefinition(deny, statement 0): 1 matching actionsecs:RunTask(deny, statement 0): 1 matching actionsecs:StartTask(deny, statement 0): 1 matching actionsecs:UpdateDaemon(deny, statement 0): 1 matching actionsecs:UpdateExpressGatewayService(deny, statement 0): 1 matching actionsecs:UpdateService(deny, statement 0): 1 matching actionsecs:UpdateServicePrimaryTaskSet(deny, statement 0): 1 matching actionsecs:UpdateTaskSet(deny, statement 0): 1 matching actionsglue:CreateJob(deny, statement 0): 1 matching actionsiam:AddUserToGroup(deny, statement 0): 1 matching actionsiam:AttachGroupPolicy(deny, statement 0): 1 matching actionsiam:AttachRolePolicy(deny, statement 0): 1 matching actionsiam:AttachUserPolicy(deny, statement 0): 1 matching actionsiam:ChangePassword(deny, statement 0): 1 matching actionsiam:CreateAccessKey(deny, statement 0): 1 matching actionsiam:CreateInstanceProfile(deny, statement 0): 1 matching actionsiam:CreateLoginProfile(deny, statement 0): 1 matching actionsiam:CreatePolicyVersion(deny, statement 0): 1 matching actionsiam:CreateRole(deny, statement 0): 1 matching actionsiam:CreateServiceSpecificCredential(deny, statement 0): 1 matching actionsiam:CreateUser(deny, statement 0): 1 matching actionsiam:DeleteAccessKey(deny, statement 0): 1 matching actionsiam:DeleteRole(deny, statement 0): 1 matching actionsiam:DetachUserPolicy(deny, statement 0): 1 matching actionsiam:ListUsers(deny, statement 0): 1 matching actionsiam:PassRole(deny, statement 0): 1 matching actionsiam:PutGroupPolicy(deny, statement 0): 1 matching actionsiam:PutRolePolicy(deny, statement 0): 1 matching actionsiam:PutUserPermissionsBoundary(deny, statement 0): 1 matching actionsiam:PutUserPolicy(deny, statement 0): 1 matching actionsiam:ResetServiceSpecificCredential(deny, statement 0): 1 matching actionsiam:SetDefaultPolicyVersion(deny, statement 0): 1 matching actionsiam:UpdateAccessKey(deny, statement 0): 1 matching actionsiam:UpdateAccountPasswordPolicy(deny, statement 0): 1 matching actionsiam:UpdateAssumeRolePolicy(deny, statement 0): 1 matching actionsiam:UpdateLoginProfile(deny, statement 0): 1 matching actionsiam:UpdateServiceSpecificCredential(deny, statement 0): 1 matching actionsiam:UpdateUser(deny, statement 0): 1 matching actionskms:Cancel*(deny, statement 0): 1 matching actionskms:Connect*(deny, statement 0): 1 matching actionskms:CreateAlias(deny, statement 0): 1 matching actionskms:CreateCustomKeyStore(deny, statement 0): 1 matching actionskms:CreateKey(deny, statement 0): 1 matching actionskms:Delete*(deny, statement 0): 3 matching actionskms:Disable*(deny, statement 0): 2 matching actionskms:Enable*(deny, statement 0): 2 matching actionskms:Put*(deny, statement 0): 1 matching actionskms:Replicate*(deny, statement 0): 1 matching actionskms:Retire*(deny, statement 0): 1 matching actionskms:Revoke*(deny, statement 0): 1 matching actionskms:Rotate*(deny, statement 0): 1 matching actionskms:Schedule*(deny, statement 0): 1 matching actionskms:TagResource(deny, statement 0): 1 matching actionskms:UntagResource(deny, statement 0): 1 matching actionskms:Update*(deny, statement 0): 4 matching actionslambda:AddLayerVersionPermission(deny, statement 0): 1 matching actionslambda:AddPermission(deny, statement 0): 1 matching actionslambda:CreateEventSourceMapping(deny, statement 0): 1 matching actionslambda:CreateFunction(deny, statement 0): 1 matching actionslambda:CreateFunctionUrlConfig(deny, statement 0): 1 matching actionslambda:CreateWebFunction(deny, statement 0): 1 matching actionslambda:CreateWebFunctionEndpoint(deny, statement 0): 1 matching actionslambda:CreateWebFunctionRevision(deny, statement 0): 1 matching actionslambda:GetEventSourceMapping(deny, statement 0): 1 matching actionslambda:GetPolicy(deny, statement 0): 1 matching actionslambda:InvokeAsync(deny, statement 0): 1 matching actionslambda:InvokeFunction(deny, statement 0): 1 matching actionslambda:InvokeFunctionUrl(deny, statement 0): 1 matching actionslambda:InvokeWebFunctionEndpoint(deny, statement 0): 1 matching actionslambda:ListTags(deny, statement 0): 1 matching actionslambda:PutProvisionedConcurrencyConfig(deny, statement 0): 1 matching actionslambda:TagResource(deny, statement 0): 1 matching actionslambda:UntagResource(deny, statement 0): 1 matching actionslambda:UpdateEventSourceMapping(deny, statement 0): 1 matching actionslambda:UpdateFunctionCode(deny, statement 0): 1 matching actionslambda:UpdateFunctionUrlConfig(deny, statement 0): 1 matching actionslambda:UpdateWebFunctionEndpoint(deny, statement 0): 1 matching actionslightsail:Create*(deny, statement 0): 24 matching actionslightsail:Delete*(deny, statement 0): 21 matching actionslightsail:DownloadDefaultKeyPair(deny, statement 0): 1 matching actionslightsail:GetInstanceAccessDetails(deny, statement 0): 1 matching actionslightsail:Start*(deny, statement 0): 3 matching actionslightsail:Update*(deny, statement 0): 10 matching actionslogs:PutLogEvents(deny, statement 0): 1 matching actionsmediapackagev2:CreateChannel(deny, statement 0): 1 matching actionsorganizations:AcceptHandshake(deny, statement 0): 1 matching actionsorganizations:CreateAccount(deny, statement 0): 1 matching actionsorganizations:CreateOrganization(deny, statement 0): 1 matching actionsorganizations:InviteAccountToOrganization(deny, statement 0): 1 matching actionsorganizations:LeaveOrganization(deny, statement 0): 1 matching actionsrds:DeleteDBSnapshot(deny, statement 0): 1 matching actionss3:CreateBucket(deny, statement 0): 1 matching actionss3:DeleteBucket(deny, statement 0): 1 matching actionss3:DeleteBucketPolicy(deny, statement 0): 1 matching actionss3:DeleteObject(deny, statement 0): 1 matching actionss3:DeleteObjectVersion(deny, statement 0): 1 matching actionss3:GetObject(deny, statement 0): 1 matching actionss3:ListAllMyBuckets(deny, statement 0): 1 matching actionss3:ListBucket(deny, statement 0): 1 matching actionss3:ObjectOwnerOverrideToBucketOwner(deny, statement 0): 1 matching actionss3:PutAccountPublicAccessBlock(deny, statement 0): 1 matching actionss3:PutBucketAcl(deny, statement 0): 1 matching actionss3:PutBucketCors(deny, statement 0): 1 matching actionss3:PutBucketObjectLockConfiguration(deny, statement 0): 1 matching actionss3:PutBucketOwnershipControls(deny, statement 0): 1 matching actionss3:PutBucketPolicy(deny, statement 0): 1 matching actionss3:PutBucketVersioning(deny, statement 0): 1 matching actionss3:PutEncryptionConfiguration(deny, statement 0): 1 matching actionss3:PutLifecycleConfiguration(deny, statement 0): 1 matching actionss3:PutObjectLegalHold(deny, statement 0): 1 matching actionss3:PutObjectRetention(deny, statement 0): 1 matching actionssagemaker:CreateApp(deny, statement 0): 1 matching actionssagemaker:CreateCluster(deny, statement 0): 1 matching actionssagemaker:CreateCompilationJob(deny, statement 0): 1 matching actionssagemaker:CreateEndpoint(deny, statement 0): 1 matching actionssagemaker:CreateEndpointConfig(deny, statement 0): 1 matching actionssagemaker:CreateHyperParameterTuningJob(deny, statement 0): 1 matching actionssagemaker:CreateJob(deny, statement 0): 1 matching actionssagemaker:CreateMlflowTrackingServer(deny, statement 0): 1 matching actionssagemaker:CreateNotebookInstance(deny, statement 0): 1 matching actionssagemaker:CreateOptimizationJob(deny, statement 0): 1 matching actionssagemaker:CreatePartnerApp(deny, statement 0): 1 matching actionssagemaker:CreateProcessingJob(deny, statement 0): 1 matching actionssagemaker:CreateTrainingJob(deny, statement 0): 1 matching actionssagemaker:CreateTransformJob(deny, statement 0): 1 matching actionssavingsplans:CreateSavingsPlan(deny, statement 0): 1 matching actionssecretsmanager:GetSecretValue(deny, statement 0): 1 matching actionssecretsmanager:PutResourcePolicy(deny, statement 0): 1 matching actionssecretsmanager:TagResource(deny, statement 0): 1 matching actionssecretsmanager:UntagResource(deny, statement 0): 1 matching actionsses:Create*(deny, statement 0): 29 matching actionsses:Delete*(deny, statement 0): 29 matching actionsses:Describe*(deny, statement 0): 4 matching actionsses:Get*(deny, statement 0): 49 matching actionsses:List*(deny, statement 0): 38 matching actionsses:Put*(deny, statement 0): 25 matching actionsses:Send*(deny, statement 0): 7 matching actionsses:Set*(deny, statement 0): 7 matching actionsses:TagResource(deny, statement 0): 1 matching actionsses:UntagResource(deny, statement 0): 1 matching actionsses:Update*(deny, statement 0): 20 matching actionssns:GetSMSAttributes(deny, statement 0): 1 matching actionssns:Publish(deny, statement 0): 1 matching actionsssm:DeleteParameter(deny, statement 0): 1 matching actionsssm:DeleteParameters(deny, statement 0): 1 matching actionsssm:DescribeParameters(deny, statement 0): 1 matching actionsssm:GetParameter*(deny, statement 0): 4 matching actionsssm:PutParameter(deny, statement 0): 1 matching actionsssm:PutResourcePolicy(deny, statement 0): 1 matching actionsssm:ResumeSession(deny, statement 0): 1 matching actionsssm:SendCommand(deny, statement 0): 1 matching actionsssm:StartSession(deny, statement 0): 1 matching actionssts:AssumeRole(deny, statement 0): 1 matching actionssts:GetFederationToken(deny, statement 0): 1 matching actionssts:GetSessionToken(deny, statement 0): 1 matching actionsxray:CallWithBearerToken(deny, statement 0): 1 matching actionskms:CreateGrant(deny-conditional, statement 1): 1 matching actions
Resource scope and attachment
Resource scope across granted actions: none.
Can be attached: Yes, to users, groups and roles.
Why this tier
- Grants no permissions: the effective allow set is empty.
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 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": [
{
"Effect": "Deny",
"Action": [
"cloudtrail:LookupEvents",
"ec2:RequestSpotInstances",
"ec2:RunInstances",
"ec2:StartInstances",
"ec2:PurchaseReservedInstancesOffering",
"ec2:AcceptReservedInstancesExchangeQuote",
"ec2:CreateReservedInstancesListing",
"iam:AddUserToGroup",
"iam:AttachGroupPolicy",
"iam:AttachRolePolicy",
"iam:AttachUserPolicy",
"iam:ChangePassword",
"iam:CreateAccessKey",
"iam:CreateInstanceProfile",
"iam:CreateLoginProfile",
"iam:CreatePolicyVersion",
"iam:CreateRole",
"iam:CreateUser",
"iam:DetachUserPolicy",
"iam:PassRole",
"iam:PutGroupPolicy",
"iam:PutRolePolicy",
"iam:PutUserPermissionsBoundary",
"iam:PutUserPolicy",
"iam:SetDefaultPolicyVersion",
"iam:UpdateAccessKey",
"iam:UpdateAccountPasswordPolicy",
"iam:UpdateAssumeRolePolicy",
"iam:UpdateLoginProfile",
"iam:UpdateUser",
"iam:DeleteRole",
"iam:DeleteAccessKey",
"iam:ListUsers",
"iam:UpdateServiceSpecificCredential",
"lambda:AddLayerVersionPermission",
"lambda:AddPermission",
"lambda:CreateFunction",
"lambda:GetPolicy",
"lambda:ListTags",
"lambda:PutProvisionedConcurrencyConfig",
"lambda:TagResource",
"lambda:UntagResource",
"lambda:UpdateFunctionCode",
"lambda:GetEventSourceMapping",
"lightsail:Create*",
"lightsail:Delete*",
"lightsail:DownloadDefaultKeyPair",
"lightsail:GetInstanceAccessDetails",
"lightsail:Start*",
"lightsail:Update*",
"organizations:CreateAccount",
"organizations:CreateOrganization",
"organizations:InviteAccountToOrganization",
"organizations:LeaveOrganization",
"organizations:AcceptHandshake",
"s3:DeleteBucket",
"s3:DeleteObject",
"s3:DeleteObjectVersion",
"s3:PutLifecycleConfiguration",
"s3:PutBucketAcl",
"s3:PutBucketOwnershipControls",
"s3:DeleteBucketPolicy",
"s3:ObjectOwnerOverrideToBucketOwner",
"s3:PutAccountPublicAccessBlock",
"s3:PutBucketPolicy",
"s3:ListAllMyBuckets",
"s3:CreateBucket",
"s3:PutBucketCors",
"s3:GetObject",
"s3:ListBucket",
"s3:PutEncryptionConfiguration",
"savingsplans:CreateSavingsPlan",
"ecs:CreateService",
"ecs:CreateCluster",
"ecs:RegisterTaskDefinition",
"ecr:GetAuthorizationToken",
"bedrock:CreateModelInvocationJob",
"bedrock:InvokeModelWithResponseStream",
"bedrock:CreateFoundationModelAgreement",
"bedrock:PutFoundationModelEntitlement",
"bedrock:InvokeModel",
"sagemaker:CreateEndpointConfig",
"sagemaker:CreateProcessingJob",
"sts:GetSessionToken",
"sts:GetFederationToken",
"amplify:CreateDeployment",
"amplify:CreateBackendEnvironment",
"codebuild:CreateProject",
"glue:CreateJob",
"sns:GetSMSAttributes",
"mediapackagev2:CreateChannel",
"logs:PutLogEvents",
"xray:CallWithBearerToken",
"ssm:SendCommand",
"ssm:StartSession",
"autoscaling:CreateAutoScalingGroup",
"autoscaling:UpdateAutoScalingGroup",
"autoscaling:SetDesiredCapacity",
"secretsmanager:GetSecretValue",
"ssm:GetParameter*",
"kms:CreateKey",
"kms:CreateAlias",
"kms:CreateCustomKeyStore",
"kms:Enable*",
"kms:Put*",
"kms:Update*",
"kms:Revoke*",
"kms:Disable*",
"kms:Delete*",
"kms:TagResource",
"kms:UntagResource",
"kms:Replicate*",
"kms:Connect*",
"kms:Cancel*",
"kms:Retire*",
"kms:Schedule*",
"kms:Rotate*",
"dynamodb:CreateTable",
"lambda:InvokeFunction",
"ses:Send*",
"ses:Create*",
"ses:Get*",
"ses:List*",
"ses:Delete*",
"ses:Put*",
"ses:Update*",
"ses:TagResource",
"ses:UntagResource",
"ses:Set*",
"ses:Describe*",
"sns:Publish",
"cloudtrail:StopLogging",
"cloudtrail:DeleteTrail",
"s3:PutBucketVersioning",
"s3:PutBucketObjectLockConfiguration",
"s3:PutObjectRetention",
"s3:PutObjectLegalHold",
"backup:DeleteRecoveryPoint",
"backup:DeleteBackupVault",
"rds:DeleteDBSnapshot",
"cloudformation:DeleteStack",
"iam:CreateServiceSpecificCredential",
"iam:ResetServiceSpecificCredential",
"sts:AssumeRole",
"ecs:RunTask",
"ecs:UpdateService",
"apprunner:CreateService",
"apprunner:UpdateService",
"apprunner:StartDeployment",
"apprunner:ResumeService",
"apprunner:TagResource",
"apprunner:UntagResource",
"sagemaker:CreateTrainingJob",
"sagemaker:CreateEndpoint",
"bedrock-mantle:Create*",
"bedrock-mantle:Delete*",
"bedrock-mantle:Update*",
"bedrock-mantle:Put*",
"bedrock-mantle:Cancel*",
"bedrock-mantle:Associate*",
"bedrock-mantle:Disassociate*",
"bedrock-mantle:ArchiveProject",
"bedrock-mantle:TagResource",
"bedrock-mantle:UntagResource",
"aws-marketplace:Subscribe",
"aws-marketplace:AcceptAgreementApprovalRequest",
"apprunner:DeleteService",
"ecs:ExecuteCommand",
"ecs:StartTask",
"ecs:CreateTaskSet",
"ecs:UpdateTaskSet",
"ecs:UpdateServicePrimaryTaskSet",
"ecs:CreateExpressGatewayService",
"ecs:UpdateExpressGatewayService",
"ecs:RegisterDaemonTaskDefinition",
"ecs:CreateDaemon",
"ecs:UpdateDaemon",
"application-autoscaling:RegisterScalableTarget",
"application-autoscaling:PutScalingPolicy",
"sagemaker:CreateNotebookInstance",
"sagemaker:CreateTransformJob",
"autoscaling:DeleteAutoScalingGroup",
"ec2:CreateLaunchTemplateVersion",
"ec2:ModifyLaunchTemplate",
"sagemaker:CreateCluster",
"secretsmanager:PutResourcePolicy",
"sagemaker:CreateHyperParameterTuningJob",
"sagemaker:CreateCompilationJob",
"sagemaker:CreateOptimizationJob",
"sagemaker:CreateApp",
"sagemaker:CreateMlflowTrackingServer",
"sagemaker:CreatePartnerApp",
"sagemaker:CreateJob",
"ssm:ResumeSession",
"lambda:InvokeFunctionUrl",
"lambda:InvokeAsync",
"ssm:PutParameter",
"ssm:DescribeParameters",
"ssm:DeleteParameter",
"ssm:DeleteParameters",
"ssm:PutResourcePolicy",
"secretsmanager:TagResource",
"secretsmanager:UntagResource",
"bedrock-mantle:CallWithBearerToken",
"bedrock:CallWithBearerToken",
"lambda:CreateFunctionUrlConfig",
"lambda:UpdateFunctionUrlConfig",
"lambda:CreateEventSourceMapping",
"lambda:UpdateEventSourceMapping",
"lambda:InvokeWebFunctionEndpoint",
"lambda:CreateWebFunction",
"lambda:CreateWebFunctionRevision",
"lambda:CreateWebFunctionEndpoint",
"lambda:UpdateWebFunctionEndpoint"
],
"Resource": [
"*"
]
},
{
"Effect": "Deny",
"Action": [
"kms:CreateGrant"
],
"Resource": "*",
"Condition": {
"Null": {
"kms:ViaService": "true"
}
}
}
]
}
Version history
Current version v2, edited by AWS on 2026-11-09. 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/AWSCompromisedKeyQuarantineV4
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AWSCompromisedKeyQuarantineV4
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AWSCompromisedKeyQuarantineV4CloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AWSCompromisedKeyQuarantineV4Terraform
resource "aws_iam_role_policy_attachment" "awscompromisedkeyquarantinev4" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/AWSCompromisedKeyQuarantineV4"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("AWSCompromisedKeyQuarantineV4"),
);Sources
Pending editorial review. No editorial sources are listed yet.