brew update && brew install oci-cli
oci -v
---
3.29.1oci setup configcat ~/.oci/config
---
[DEFAULT]
user=ocid1.user.oc1..<unique_ID>
fingerprint=<your_fingerprint>
tenancy=ocid1.tenancy.oc1..<unique_ID>
region=us-ashburn-1
key_file=~/.oci/oci_api_key.pemvi ~/.env
---
COMPARTMENT_ID='.'
FNAPP_NAME='test-cli2'
SUBNET_ID='.'
ORDS_BASE_URL='.'
DB_USER_SECRET_OCID='test_user'
DB_PASSWORD_SECRET_OCID='Qwerty12345!'
FNFNC_NAME='product-store-operations-python'
APIGW_NAME='test-cli-gw2'
APIDEPLOY_NAME='test-cli-gw-deploy2'
# To be made after executing startup.sh
# FNAPP_ID='.'
# FNFNC_ID='.'
# APIGW_ID='.'
# APIDEPLOY_ID='.'
# APIDEPLOY_ENDPOINT='.'- Check out
OCI Functions > Applications > Resources > Getting Started > Local setup.
cd my-func- But notice that all vars and settings(especially apideploy-spec.json) are fitted with the original one.
- Check out
./apideploy-spec.jsonand make your own
sudo chmod +x ./startup.sh
./startup.sh3) During the execution, some temporary files will be made(fnapp.json, fnfnc.json, apigw.json, apideploy.json). Just ignore them.
apideploy-spec.jsoncan easly be remove, due to code.- Alternatively, use this backup file instead.