Fully Remote Development with VS Code & Cloud9

Posted on Sat 04 January 2020 in development • Tagged with gcp, authorization, iam

I work from about 7 different machines, including 3 laptops, ipad, chromebook and a PC desktop. Usually this means keeping credentials, config, build dependencies and IDEs in sync across all 3--and the iPad & Chromebook just can't run my dev environment

I considered a few options to enable seamless work across devices

option pros cons
Keep a "dev" docker image that contains everything. fully-local dev only works on Desktop OSs. Inconsistency if you forget to push the image
Sync script fully-local dev Inconsistency across devices. Script mayhem
Code remotely via a VM Secure, consistent Traditionally, text-only

Solution

  1. Launch Cloud9 Environment on …
Continue reading

GCP: Managing IAM Access Control Across Projects -- The Simpler Version

Posted on Mon 25 February 2019 in gcp • Tagged with gcp, authorization, iam

GCP resources are organized into projects -- all resource IDs and IAM principles are grouped under a project ID. This means that by default roles assigned to a principle (e.g. a user or service account) are scoped only to project resources. This can be tricky if say your images are in one project's storage bucket and your app is running in another

If you want to provide a service principle in one project access to resources in another , the approach is not obvious, nor is it well documented.

Below we'll talk about the most direct way, which works for projects …

Continue reading