amazon web services - How do I add inbound security rules for EC2 using DNS? -


i using appery.io, , need whitelist it's app server shown in tutorial using database hosted on amazon rds.

how do using it's dns? i.e.

aex1.appery.io
aex2.appery.io

i know can using it's ip address. however, use it's dns protect against ip address changes.

from know , trying out on aws console , vpc documentation: http://docs.aws.amazon.com/amazonvpc/latest/userguide/vpc_securitygroups.html

you can specify ip.

only other way can think of is: place service in same vpc db. make periodically check changes in ip of url pasted. if changes, should update rules accordingly. allow access aws api, need give instance running on required permissions. read instance profiles. need create required role using iam , assign corresponding instance profile instance when launching instance. code should run on instance , have required permission based on role created.

you can run program outside aws well. give access access_key , secretkey, region , set right role user.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -