Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
....
tenancy := os.Getenv("TENANT_OCID")
user := os.Getenv("USER_OCID")
region := os.Getenv("REGION")
fingerprint := os.Getenv("FINGERPRINT")
privateKeyName := os.Getenv("OCI_PRIVATE_KEY_FILE_NAME")
privateKeyLocation := privateKeyFolder + "/" + privateKeyName
passphrase := os.Getenv("PASSPHRASE")
privateKey, err := ioutil.ReadFile(privateKeyLocation)
....
rawConfigProvider := common.NewRawConfigurationProvider(tenancy, user, region, fingerprint, string(privateKey), common.String(passphrase))
cc, err := core.NewComputeClientWithConfigurationProvider(rawConfigProvider)
....
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment