-
Notifications
You must be signed in to change notification settings - Fork 0
Usage
Usage
./bin/aws/ec/redis/replication-group/create
Background
This script utilizes aws elasticache create-replication-group
behind the scenes.
Dependencies
The following environment variables must be defined.
AWS_REPLICATION_GROUP_ID
AWS_REPLICATION_GROUP_DESCRIPTION
AWS_REPLICATION_CACHE_NODE_TYPE
AWS_REPLICATION_ENGINE
AWS_REPLICATION_CACHE_PARAMETER_GROUP_NAME
AWS_REPLICATION_CACHE_NUMBER_OF_CLUSTERS
Sample Output
{
"ReplicationGroup": {
"ReplicationGroupId": "[REDACTED]",
"Description": "[REDACTED]",
"GlobalReplicationGroupInfo": {},
"Status": "creating",
"PendingModifiedValues": {},
"MemberClusters": [
"[REDACTED]"
],
"AutomaticFailover": "enabled",
"MultiAZ": "disabled",
"SnapshotRetentionLimit": 0,
"SnapshotWindow": "07:30-08:30",
"ClusterEnabled": true,
"CacheNodeType": "cache.t3.micro",
"TransitEncryptionEnabled": false,
"AtRestEncryptionEnabled": false,
"ARN": "[REDACTED]",
"LogDeliveryConfigurations": [],
"ReplicationGroupCreateTime": "2023-09-15T13:47:40.479000+00:00",
"DataTiering": "disabled",
"AutoMinorVersionUpgrade": true,
"NetworkType": "ipv4",
"IpDiscovery": "ipv4",
"ClusterMode": "enabled"
}
}
Usage
./bin/aws/ec/redis/replication-group/delete
Background
This script utilizes aws elasticache delete-replication-group
behind the scenes.
Dependencies
The following environment variables are required:
AWS_REPLICATION_GROUP_ID
Sample Output
{
"ReplicationGroup": {
"ReplicationGroupId": "[REDACTED]",
"Description": "[REDACTED]",
"GlobalReplicationGroupInfo": {},
"Status": "deleting",
"PendingModifiedValues": {},
"AutomaticFailover": "enabled",
"MultiAZ": "disabled",
"SnapshotRetentionLimit": 0,
"SnapshotWindow": "07:30-08:30",
"TransitEncryptionEnabled": false,
"AtRestEncryptionEnabled": false,
"ARN": "[REDACTED]",
"LogDeliveryConfigurations": [],
"ReplicationGroupCreateTime": "2023-09-15T13:47:40.479000+00:00",
"DataTiering": "disabled",
"AutoMinorVersionUpgrade": true,
"NetworkType": "ipv4",
"IpDiscovery": "ipv4",
"ClusterMode": "enabled"
}
}
Usage
./bin/aws/ec/redis/replication-group/describe
Background
This script utilizes aws elasticache describe-replication-groups
behind the scenes.
Dependencies
The following environment variables are required:
AWS_REPLICATION_GROUP_ID
Sample Output
Once the replication group is created, you can retrieve the address:
[REPLICATION_GROUP_ID].in4b7q.clustercfg.use1.cache.amazonaws.com
./bin/aws/ec/redis/replication-group/status
Background
This script utilizes aws elasticache describe-replication-groups
behind the scenes.
Dependencies
The following environment variables are required:
AWS_REPLICATION_GROUP_ID
Sample Output
When creating a replication group:
creating
The possible statuses here include:
creating
available
modifying
deleting
create-failed
snapshotting
For more information, check out the documentation here.
- instance
- get-endpoint