Secure mongodb atlas connection using IAM role to a particular Elstic BeanStalk environment in AWS #2622
Unanswered
SajaiPrathap070
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@SajaiPrathap070 are you sure this is the right repository? Looking at the code I do not see how this is related to Echo framework. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to secure mongodb atlas connection using IAM role to a particular Elstic BeanStalk environment in AWS?
I am deploying the project in aws ebs and I want to secure the mognodb atlas access to only this particular environment through IAM role and not by setting IP whiteList because the instance IP is not static.
I have added the IAM role credentials to the mongodb atlas,
Creating the mongodb URI I am using the accessKey, secretKey and session token obtained from the aws security token service (STS).
`func SecurityTokenService(region string) (*models.TempCredentials, StatusResponse.Status) {
}`
When I try to access the APIs I am getting selection time out error.
I have tried using the mongodb URI with cluster user and password but still getting the selection timeout error.
Can you help me out with this. Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions