Skip to content
Alvin Crespo edited this page Sep 15, 2023 · 9 revisions

ElastiCache (EC)

Scripts

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"
    }
}

describe

Usage

./bin/aws/ec/redis/replication-group/describe
./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.

Elastic Container Registry (ECR)

Scripts

Elastic Kubernetes Service (EKS)

Scripts

Identity and Access Management (IAM)

Scripts

Relational Database Service (RDS)

Scripts

Clone this wiki locally