You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vi ~/.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='.'
4. Initialize function
1) command fn should be set
Check out OCI Functions > Applications > Resources > Getting Started > Local setup.
+) You can newly make it with fn init or use the original one.
cd my-func
But notice that all vars and settings(especially apideploy-spec.json) are fitted with the original one.
5. Customize api gateway
Check out ./apideploy-spec.json and make your own
6. Execute Startup
sudo chmod +x ./startup.sh
./startup.sh
1) IF everything goes well, ALL the annotated vars in the dotenv file will be filled.
2) IF NOT, check logs 😅.
3) During the execution, some temporary files will be made(fnapp.json, fnfnc.json, apigw.json, apideploy.json). Just ignore them.
6. FMI
1) apideploy-spec.json.bak
apideploy-spec.json can easly be remove, due to code.