Step 4: Configure security group inbound rules using the AWS CLI
The nodes in your Amazon DynamoDB Accelerator (DAX) cluster use the default security group for your Amazon VPC. For the default security group, you must authorize inbound traffic on TCP port 8111 for unencrypted clusters or port 9111 for encrypted clusters. This allows Amazon EC2 instances in your Amazon VPC to access your DAX cluster.
If you launched your DAX cluster with a different security group (other than
default
), you must perform this procedure for that group
instead.
To configure security group inbound rules
-
To determine the default security group identifier, enter the following command. Replace
with your actual VPC ID (from Step 2: Create a subnet group).vpcID
aws ec2 describe-security-groups \ --filters Name=vpc-id,Values=
vpcID
,Name=group-name,Values=default \ --query "SecurityGroups[*].{GroupName:GroupName,GroupId:GroupId}"In the output, note the security group identifier—for example,
sg-01234567
. Then enter the following. Replace
with your actual security group identifier. Use portsgID
8111
for unencrypted clusters and9111
for encrypted clusters.aws ec2 authorize-security-group-ingress \ --group-id
sgID
--protocol tcp --port8111