Skip to content

Commit 974580e

Browse files
committed
updated the documents
1 parent 9e5ab20 commit 974580e

File tree

4 files changed

+56
-27
lines changed

4 files changed

+56
-27
lines changed
Loading
Loading
Loading

ads/feature_store/docs/source/terraform.rst

Lines changed: 56 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -82,47 +82,76 @@ Prerequisites
8282

8383
1. Install `oci-cli <https://docs.oracle.com/en-us/iaas/Content/API/Concepts/cliconcepts.htm>`__ if not installed
8484

85-
2. Download the stack from ``Terraform Stack`` column in :ref:`Release Notes`.
86-
87-
3. (Optional: Skip if default deployment is required) To use this file just copy the example ``terraform.tfvars.example`` and save it in the outermost directory.
88-
89-
4. (Optional: Skip if default deployment is required) Next, rename the file to ``terraform.tfvars``. You can override the example values set in this file.
90-
91-
9285
Steps
9386
#####
9487

9588
.. note::
9689

9790
Refer :ref:`Release Notes` for getting the latest conda pack and ``SERVICE_VERSION``. Remember to replace the values within angle brackets ("<>" symbols) in the command above with the relevant values for your environment. Also, Refer :ref:`User Policies` to create feature store stack for non admin users. No policies are explicitly required for admin user.
9891

99-
100-
1. Download the stack from ``Terraform Stack`` column in :ref:`Release Notes`.
101-
102-
2. Run the shell command.
92+
1. Run the shell command.
10393
.. code-block:: shell
10494
105-
oci resource-manager stack create \
106-
--compartment-id <compartment-id> \
107-
--config-source <path-to-downloaded-zip-file> \
108-
--terraform-version 1.1.x \
109-
--variables '{
110-
"service_version": "<SERVICE_VERSION>",
111-
"tenancy_ocid": "<TENANCY_OCID>",
112-
"compartment_ocid": "<COMPARTMENT_OCID>",
113-
"region": "<REGION>",
114-
"user_ocid": "<USER_OCID>"
115-
}' \
116-
--display-name "Feature Store Stack" \
117-
--working-directory "feature-store-terraform" \
118-
| tee stack_output.json \
119-
&& stack_id=$(jq -r '.data."id"' stack_output.json) \
120-
&& oci resource-manager job create-apply-job \
95+
rm -f feature-store-terraform.zip \
96+
&& wget https://objectstorage.us-ashburn-1.oraclecloud.com/p/vZogtXWwHqbkGLeqyKiqBmVxdbR4MK4nyOBqDsJNVE4sHGUY5KFi4T3mOFGA3FOy/n/idogsu2ylimg/b/oci-feature-store/o/beta/terraform/feature-store-terraform.zip \
97+
&& oci resource-manager stack create \
98+
--compartment-id <compartment-id> \
99+
--config-source <path-to-downloaded-zip-file> \
100+
--terraform-version 1.1.x \
101+
--variables '{
102+
"service_version": "<SERVICE_VERSION>",
103+
"tenancy_ocid": "<TENANCY_OCID>",
104+
"compartment_ocid": "<COMPARTMENT_OCID>",
105+
"region": "<REGION>",
106+
"user_ocid": "<USER_OCID>"
107+
}' \
108+
--display-name "Feature Store Stack" \
109+
--working-directory "feature-store-terraform" \
110+
| tee stack_output.json \
111+
&& stack_id=$(jq -r '.data."id"' stack_output.json) \
112+
&& oci resource-manager job create-apply-job \
121113
--execution-plan-strategy AUTO_APPROVED \
122114
--stack-id $stack_id \
123115
--wait-for-state SUCCEEDED \
124116
--wait-for-state FAILED
125117
118+
Update Feature Store Stack with the Latest using OCI CLI
119+
==============================
120+
121+
Prerequisites
122+
#############
123+
124+
1. Install `oci-cli <https://docs.oracle.com/en-us/iaas/Content/API/Concepts/cliconcepts.htm>`__ if not installed
125+
2. In order to update the stack, get the <STACK_ID> from console by navigating to `OCI Resource Manager <https://www.oracle.com/devops/resource-manager/>`__.
126+
127+
.. figure:: figures/resource_manager.png
128+
129+
.. figure:: figures/resource_manager_home.png
130+
131+
.. figure:: figures/resource_manager_feature_store_stack.png
132+
133+
134+
Steps
135+
#####
136+
137+
.. note::
138+
139+
Refer :ref:`Release Notes` for getting the latest conda pack and ``SERVICE_VERSION``. Remember to replace the values within angle brackets ("<>" symbols) in the command above with the relevant values for your environment. Also, Refer :ref:`User Policies` to create feature store stack for non admin users. No policies are explicitly required for admin user.
140+
141+
1. Run the shell command.
142+
.. code-block:: shell
143+
144+
rm -f feature-store-terraform.zip \
145+
&& wget https://objectstorage.us-ashburn-1.oraclecloud.com/p/vZogtXWwHqbkGLeqyKiqBmVxdbR4MK4nyOBqDsJNVE4sHGUY5KFi4T3mOFGA3FOy/n/idogsu2ylimg/b/oci-feature-store/o/beta/terraform/feature-store-terraform.zip \
146+
&& oci resource-manager stack update \
147+
--stack-id <STACK_ID> \
148+
--variables '{"service_version": "<SERVICE_VERSION>", "tenancy_ocid": "<TENANCY_OCID>", "compartment_ocid": "<COMPARTMENT_OCID>", "region": "<REGION>", "user_ocid": "<USER_OCID>"}' \
149+
--config-source "feature-store-terraform.zip" \
150+
--working-directory "feature-store-terraform" --force \
151+
&& oci resource-manager job create-apply-job \
152+
--execution-plan-strategy AUTO_APPROVED \
153+
--stack-id <STACK_ID> \
154+
--wait-for-state SUCCEEDED --wait-for-state FAILED
126155
127156
Terraform Variables (Advanced)
128157
===============================

0 commit comments

Comments
 (0)