amazon web services - Access RDS from Lambda function -
i have aurora cluster in rds , lambda function.
- both assigned same vpc.
- both have same subnets (us-east-1 a-f)
- both have same security group assigned
- lambda assigned role amazonrdsfullaccess, amazonvpcfullaccess, awslambdavpcaccessexecutionrole
when run lambda instance, connection timeout when trying connect aurora. i'm able access aurora locally (with access key added aws configure).
any ideas else can check why lambda wouldn't have access instance? thank you
both have same security group assigned
it's common misconception members of same security group can communicate each other virtue of being members of same group. not case. being members of same group means follow same set of rules.
members of security group can access other members of group if group allows access itself.
instances associated security group can't talk each other unless add rules allowing (exception: default security group has these rules default).
http://docs.aws.amazon.com/amazonvpc/latest/userguide/vpc_securitygroups.html
add rule group "mysql/aurora" traffic, instead of entering ip address, enter sg-xxxxxxxx
identifier of security group.
Comments
Post a Comment