Description:
Morpheus is only able to interact with GCP directly using a blueprint. You can add tags or ephemeral IP addresses during this stage. Once the blueprint has run, there is no way to interact with GCP directly from Morpheus. Morpheus already has the GCP service account embedded, but it lacks the ability to call commands using Google cloud shell which would greatly help with workflows.
Example/Use case(s):
Changing or adding network tags, removing ephemeral IP addresses, etc.
I use Azure/AWS/GCP SDK that I install locally on my Morpheus appliances. I ensure morpheus-local has access to those modules. I then use local shell task types to execute against them. That said, there is an RBAC to prevent users access to local shell executions for a good precautionary reason.
I utilize credentials contained within cypher and use the <%=cyper.read('secret/whatever')%> in my scripts / automation. Cypher doesn’t have to just be a singular string.
Anything recent with GCP I’ve been using TF. I think you’ll have the same concept with the sdk. That said, I pasted the contents of the JSON into cypher (cypher does not have to be single string).
My heavily edited cypher of ‘secret/gcpkey’ is something like: