secretsmanager:AssociateCrossAccountReplica

Write

secretsmanager:AssociateCrossAccountReplica is a Write access-level action in the secretsmanager service. Grants permission to replicate a cross-account primary secret to a cross-account replica secret

Resource types

ARNs that secretsmanager:AssociateCrossAccountReplica can be scoped to in an IAM policy.

arn:${Partition}:secretsmanager:${Region}:${Account}:secret:${SecretId} required
Secret

Condition keys

Keys you can use in the Condition block of a policy that grants secretsmanager:AssociateCrossAccountReplica.

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

secretsmanager:CrossAccountReplicaARN ARN

Filters access by the cross-account replica secret ARN provided in the request when calling against a cross-account primary secret

secretsmanager:ReplicaRestriction String

Filters access by the cross-account replica restriction in the request

secretsmanager:ReplicationRoleARN ARN

Filters access by cross-account replication role ARN in the request

secretsmanager:ResourceTag/tag-key String

Filters access by a tag key and value pair

secretsmanager:SecretId ARN

Filters access by the SecretID value in the request

secretsmanager:SecretPrimaryRegion String

Filters access by primary region in which the secret is created if the secret is a multi-Region secret

secretsmanager:resource/AllowRotationLambdaArn ARN

Filters access by the ARN of the rotation Lambda function associated with the secret

aws:RequestTag/${TagKey} String

Filters access by a key that is present in the request the user makes to the Secrets Manager service

aws:TagKeys ArrayOfString

Filters access by the list of all the tag key names present in the request the user makes to the Secrets Manager service

secretsmanager:resource/Type String

Filters access by the managed external secret type associated with the secret

Example IAM policy

A minimal policy that allows secretsmanager:AssociateCrossAccountReplica. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowSecretsmanagerAssociateCrossAccountReplica",
      "Effect": "Allow",
      "Action": "secretsmanager:AssociateCrossAccountReplica",
      "Resource": "*"
    }
  ]
}

Related actions in secretsmanager

View all secretsmanager actions →