chore(kb/oci): review documents

This commit is contained in:
Michele Cereda
2024-10-23 00:55:36 +02:00
parent c6052291a6
commit 1fc1ba1242
2 changed files with 23 additions and 6 deletions

View File

@@ -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

View File

@@ -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 -->