|
| 1 | +This module handles opinionated Feature Store AuthN/AuthZ configuration using API Gateway on Oracle Cloud Infrastructure ([OCI][oci]). This stack is designed to be used with the [OCI Resource Manager][oci_rm] to enhance Feature store experience with AuthN/AuthZ in a single step. The stack can also be used with the [OCI Terraform Provider][oci_tf_provider] to deploy using local or CloudShell Terraform cli. |
| 2 | + |
| 3 | +## Deploy Using Oracle Resource Manager |
| 4 | + |
| 5 | +> ___NOTE:___ If you aren't already signed in, when prompted, enter the compartment <compartment_name> and user credentials. Review and accept the terms and conditions. |
| 6 | +
|
| 7 | +1. Click to download the [terraform bundle][https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://raw.githubusercontent.com/harsh97/oci-data-science-ai-samples/feature-store/feature_store/fs_apigw_terraform.zip] |
| 8 | + |
| 9 | +1. Create a stack in OCI resource manager with the downloaded bundle |
| 10 | + |
| 11 | +1. Follow the on-screen prompts and instructions to create the stack. |
| 12 | + |
| 13 | +1. After creating the stack, click Terraform Actions, and select Plan. |
| 14 | + |
| 15 | +1. Wait for the job to be completed, and review the plan. |
| 16 | + |
| 17 | +1. To make any changes, return to the Stack Details page, click Edit Stack, and make the required changes. Then, run the Plan action again. |
| 18 | + |
| 19 | +1. If no further changes are necessary, return to the Stack Details page, click Terraform Actions, and select Apply. |
| 20 | + |
| 21 | +1. After the stack application is complete attach the auto-provisioned security rules to the respective service and node subnets of the OKE cluster. |
| 22 | + |
| 23 | +### Prerequisites |
| 24 | +#### Required permissions: |
| 25 | +allow group <user_group> to manage orm-stacks in compartment <compartment_name> |
| 26 | +allow group <user_group> to manage orm-jobs in compartment <compartment_name> |
| 27 | +allow group <user_group> to read network-load-balancers in compartment <compartment_name> |
| 28 | +allow group <user_group> to read instances in compartment <compartment_name> |
| 29 | +allow group <user_group> to manage groups in compartment <compartment_name> |
| 30 | +allow group <user_group> to manage dynamic-groups in compartment <compartment_name> |
| 31 | +allow group <user_group> to manage functions-family in compartment <compartment_name> |
| 32 | +allow group <user_group> to manage virtual-network-family in compartment <compartment_name> |
| 33 | +allow group <user_group> to manage policies in tenancy |
| 34 | + |
| 35 | + |
| 36 | +### Running Terraform |
| 37 | + |
| 38 | +After specifying the required variables you can run the stack using the following commands: |
| 39 | + |
| 40 | +```bash |
| 41 | +terraform init |
| 42 | +``` |
| 43 | + |
| 44 | +```bash |
| 45 | +terraform plan -var-file=<path-to-variable-file> |
| 46 | +``` |
| 47 | + |
| 48 | +```bash |
| 49 | +terraform apply -var-file=<path-to-variable-file> |
| 50 | +``` |
| 51 | + |
| 52 | +```bash |
| 53 | +terraform destroy -refresh=false |
| 54 | +``` |
| 55 | + |
| 56 | + |
| 57 | +## License |
| 58 | + |
| 59 | +Copyright (c) 2021, 2024 Oracle and/or its affiliates. |
| 60 | +Released under the Universal Permissive License (UPL), Version 1.0. |
| 61 | +See [LICENSE](./LICENSE) for more details. |
| 62 | + |
| 63 | +[oci]: https://cloud.oracle.com/en_US/cloud-infrastructure |
| 64 | +[oci_rm]: https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Concepts/resourcemanager.htm |
| 65 | +[stack]: https://cloud.oracle.com/resourcemanager/stacks/create?zipUrl=https://raw.githubusercontent.com/harsh97/oci-data-science-ai-samples/feature-store/feature_store/fs_apigw_terraform.zip |
0 commit comments