CmdID / aws / aws secretsmanager
aws secretsmanager remove-regions-from-replication
For a secret that is replicated to other Regions, deletes the secret replicas from the Regions you specify. AWS CLI reference
1 example 2 options Its page in the AWS CLI reference
Examples
To delete a replica secret
The following remove-regions-from-replication example deletes a replica secret in eu-west-3. To delete a primary secret that is replicated to other regions, first delete the replicas and then call delete-secret.
aws secretsmanager remove-regions-from-replication --secret-id MyTestSecret --remove-replica-regions eu-west-3Identify--secret-idThe ARN or name of the secret.--remove-replica-regionsThe Regions of the replicas to remove.Its output
{
"ARN": "arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestSecret-1a2b3c",
"ReplicationStatus": []
}For more information, see Replicate AWS Secrets Manager secrets across Regions in the Secrets Manager User Guide.
Options
--remove-replica-regionsThe Regions of the replicas to remove.--secret-idThe ARN or name of the secret.