Make a service private

Make a service answer only to the other services in its project, with no address on the internet.

Make it private

  1. In the console, open the service and press ⌘K. Choose Settings › Access › Project services only.

    The service becomes private, and the change waits as a staged change.

    With the CLI:

    Terminal
    ghaym cloud access set api --reach private
  2. Press ⌘K, choose Review changes, then press ⌘↵ to apply it.

    With the CLI:

    Terminal
    ghaym cloud changes apply --project shop

Check it

Press ⌘K and choose Settings. Next to Access you see Private. Other services in the project reach it at api:3000.

Terminal
ghaym cloud access get api

Open it again

Press ⌘K, choose Settings › Access › Anyone, and apply the change.

Terminal
ghaym cloud access set api --reach public --apply