mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(kb/oci): review documents
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
# Oracle Cloud Infrastructure
|
||||
|
||||
## Table of contents <!-- omit in toc -->
|
||||
|
||||
1. [Concepts](#concepts)
|
||||
1. [Compartments](#compartments)
|
||||
1. [Networking](#networking)
|
||||
@@ -38,13 +36,15 @@ This includes **any policies** attached to the compartment itself.
|
||||
- [`oci-cli`][oci-cli]
|
||||
- [Compute images]
|
||||
- [Connect to private compute instances using OCI Bastion Service]
|
||||
- [Running Commands on an Instance]
|
||||
|
||||
### Sources
|
||||
|
||||
- [Required keys and OCIDs]
|
||||
|
||||
<!--
|
||||
References
|
||||
Reference
|
||||
═╬═Time══
|
||||
-->
|
||||
|
||||
<!-- In-article sections -->
|
||||
@@ -56,3 +56,4 @@ This includes **any policies** attached to the compartment itself.
|
||||
|
||||
<!-- Others -->
|
||||
[connect to private compute instances using oci bastion service]: https://medium.com/@harjulthakkar/connect-to-private-compute-instance-using-oci-bastion-service-ca96a3ceea49
|
||||
[running commands on an instance]: https://docs.public.oneportal.content.oci.oraclecloud.com/en-us/iaas/Content/Compute/Tasks/runningcommands.htm
|
||||
|
||||
@@ -2,27 +2,40 @@
|
||||
|
||||
Oracle Cloud Infrastructure CLI.
|
||||
|
||||
## Table of contents <!-- omit in toc -->
|
||||
|
||||
1. [TL;DR](#tldr)
|
||||
1. [Configuration](#configuration)
|
||||
1. [Further readings](#further-readings)
|
||||
|
||||
## TL;DR
|
||||
|
||||
<details>
|
||||
<summary>Setup</summary>
|
||||
|
||||
```sh
|
||||
# Install the CLI.
|
||||
pip install 'oci-cli'
|
||||
brew install 'oci-cli'
|
||||
dnf install 'oci-cli'
|
||||
zypper install 'oci-cli'
|
||||
|
||||
# Start the interactive setup.
|
||||
# The key pair must be registered for the user in the cloud console.
|
||||
oci setup config
|
||||
|
||||
# Generate a key pair to include in the config file.
|
||||
# The key pair must be registered for the user in the cloud console.
|
||||
oci setup keys
|
||||
|
||||
# Show the current configuration.
|
||||
cat ~/'.oci/config'
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Usage</summary>
|
||||
|
||||
```sh
|
||||
# List available compartments.
|
||||
oci iam compartment list
|
||||
oci iam compartment list -c 'tenancy_id'
|
||||
@@ -52,6 +65,8 @@ oci instance-agent available-plugins get -c 'tenancy_id' \
|
||||
oci compute instance list -c 'tenancy_id'
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
## Configuration
|
||||
|
||||
| Unix location | Description |
|
||||
@@ -67,7 +82,8 @@ oci compute instance list -c 'tenancy_id'
|
||||
- [Required keys and OCIDs]
|
||||
|
||||
<!--
|
||||
References
|
||||
Reference
|
||||
═╬═Time══
|
||||
-->
|
||||
|
||||
<!-- Knowledge base -->
|
||||
|
||||
Reference in New Issue
Block a user