I am trying to open the mongodb instance I created using the compute engine cloud launcher so that I can access it from anywhere. I did the following but it does not seem to work. Can you help?
# gcloud config set project my-project
# gcloud compute firewall-rules create allow-mongo --description "Incoming mongo allowed." --source-tags=mongo-arbiter --allow tcp:27017
Created [allow-mongo].
NAME NETWORK SRC_RANGES RULES SRC_TAGS TARGET_TAGS
allow-mongo default tcp:27017 mongo-arbiter
# gcloud compute firewall-rules create allow-mongo-server --description "Incoming mongo allowed." --source-tags=mongodb-1-server-1 --allow tcp:27017
Created [allow-mongo-server].
NAME NETWORK SRC_RANGES RULES SRC_TAGS TARGET_TAGS
allow-mongo-server default tcp:27017 mongodb-server
Reset the database servers from the console. But still "telnet <ip> 27017" does not seem to work. Can you please help?