Create a GCE service account
Navigate to the Google Developers Console.
Create a project in GCE.
This will give a project ID for the project. In this case the project ID is as follows:ultra-component-108507
Create a service account.
Every GCE account has a service account that is used for authentication purposes and to enable advanced features. Follow the instructions below to create a service account.- On the APIs and auth menu, click Credentials.
- Select the JSON option.
- Click Create to create the service account.
This will download a JSON file containing the following: private key, client email, client ID etc.
Adding a firewall rule
Either edit the default firewall rules or add a new firewall in GCE. By default, incoming traffic from outside is blocked.
Follow the instructions below to update the default firewall rules:
- Navigate to the Google Developers Console.
- On the Networking menu, click Firewall rules.
- Update the default-allow-internal firewall rule.
- Click on the default-allow-internal firewall rule.
This firewall rule allows only private IPs to access the instance. Therefore, you need to edit the firewall rule to allow access from outside. - Click Edit.
Select Allow from any source (0.0.0.0/0) from the drop-down menu to allow traffic from outside and save it.
- Click on the default-allow-internal firewall rule.