0 votes
1 view
in AWS by (19.2k points)

I have to connect my dynamic IP(which changes every time) to the AWS EC2 machine.

For this I mapped my public IP to the domain name(xyz.com), now I am trying to add it to the security group.

But AWS security group not allowing to add DNS names. Is it the right process to do it, if not please suggest me.

1 Answer

0 votes
by (44.6k points)

You can use a script to update your IP dynamic addresses in the AWS CLI:

aws ec2 authorize-security-group-ingress --group-id --protocol tcp --port 22 --cidr /24

Check out this documentation for more insights - http://docs.aws.amazon.com/cli/latest/userguide/cli-ec2-sg.html

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...