CmdID

CmdID / aws / aws elasticache

aws elasticache create-snapshot

Creates a copy of an entire cluster or replication group at a specific moment in time. AWS CLI reference

1 example 5 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To create a snapshot

The following create-snapshot example creates a snapshot using the Redis engine.

aws elasticache create-snapshot --snapshot-name mysnapshot --cache-cluster-id cluster-testIdentify
--snapshot-nameA name for the snapshot being created.
--cache-cluster-idThe identifier of an existing cluster.
Its output
{
    "Snapshot": {
        "SnapshotName": "mysnapshot",
        "CacheClusterId": "cluster-test",
        "SnapshotStatus": "creating",
        "SnapshotSource": "manual",
        "CacheNodeType": "cache.m5.large",
        "Engine": "redis",
        "EngineVersion": "5.0.5",
        "NumCacheNodes": 1,
        "PreferredAvailabilityZone": "us-west-2b",
        "CacheClusterCreateTime": "2020-03-19T03:12:01.483Z",
        "PreferredMaintenanceWindow": "sat:13:00-sat:14:00",
        "Port": 6379,
        "CacheParameterGroupName": "default.redis5.0",
        "CacheSubnetGroupName": "default",
        "VpcId": "vpc-a3e97cdb",
        "AutoMinorVersionUpgrade": true,
        "SnapshotRetentionLimit": 0,
        "SnapshotWindow": "06:30-07:30",
        "NodeSnapshots": [
            {
                "CacheNodeId": "0001",
                "CacheSize": "",
                "CacheNodeCreateTime": "2020-03-19T03:12:01.483Z"
            }
        ]
    }
}

For more information, see Backup and Restore for ElastiCache for Redis in the Elasticache User Guide.

Options

5 in the AWS CLI reference
--cache-cluster-idThe identifier of an existing cluster.
--kms-key-idThe ID of the KMS key used to encrypt the snapshot.
--replication-group-idThe identifier of an existing replication group.
--snapshot-nameA name for the snapshot being created.
--tagsA list of tags to be added to this resource.