ElastiCache キャッシュと Amazon EC2 インスタンスが同じ Amazon VPC にある場合のキャッシュへのアクセス 最も一般的ユースケースは、EC2 インスタンスにデプロイされたアプリケーションが同じ VPC のキャッシュに接続する必要がある場合です。 このシナリオを以下に図表で示します。 キャッシュ用のセキュリティグループを作成します。このセキュリティグループを使用して、キャッシュへのアクセスを制限できます。例えば、キャッシュを作成したときに割り当てたポートと、キャッシュにアクセスするのに使用する IP アドレスを使用して TCP へのアクセスを許可する、このセキュリティグループのカスタムルールを作成できます。 Memcached キャッシュのデフォルトのポートは 11211 です。 EC2 インスタンス (ウェブサーバーとアプリケーションサーバー) 用の VPC