Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Last active April 8, 2019 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhirockzz/47403e8bf47a69aa200348a910752fd0 to your computer and use it in GitHub Desktop.
Save abhirockzz/47403e8bf47a69aa200348a910752fd0 to your computer and use it in GitHub Desktop.
....
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