In the previous part, we created our application and our 2 functions.
Now we need to create an API Gateway to be able to call these functions from outside OCI. Using a third party scheduler, our laptop, etc…
Before creating the gateway, we need to create some policy to allow the API Gateway to call our functions. I’ve tried to create the policy after, it seems to not work as expected.
Security
Dynamic Group
We need to create a Dynamic Group that will match our gateway:
The matching rule is checking the type of resource that should be
ApiGateway
and my compartment’s id:
All {resource.type='ApiGateway', resource.compartment.id = 'ocid1.compartment.oc1..xxxxxxxxx'}
Policy …
[Read more]