認可プロバイダ・ファンクションのデプロイ

Find out how to deploy an authorizer function for use with API Gateway.

記述した認可プロバイダ・ファンクションをデプロイするには:

  1. コードからDockerイメージを作成し、DockerイメージをDockerレジストリにプッシュして、イメージに基づいてOCI Functionsで新しいファンクションを作成します。これは、様々な方法で実行できます:

    • You can use the Fn Project CLI command fn deploy to build a new Docker image, push the image to the Docker registry, and create a new function in OCI Functions based on the image.ファンクションの作成およびデプロイを参照してください。
    • You can use Docker commands to build the image and push it to the Docker registry, and then use the Fn Project CLI command fn create function (or the CreateFunction API operation) to create a new function in OCI Functions based on the image.既存のDockerイメージからのファンクションの作成を参照してください。
  2. Make a note of the OCID of the function you create in OCI Functions.たとえば、ocid1.fnfunc.oc1.phx.aaaaaaaaac2______kg6fqです
  3. まだ存在しない場合は、Oracle Cloud Infrastructureポリシーを作成し、APIゲートウェイにファンクション関連リソースへのアクセス権を付与するポリシー・ステートメントを指定します。ポリシーによって、これらのAPIゲートウェイのAPIデプロイメントで認可プロバイダ・ファンクションを起動できます。詳細は、APIゲートウェイにファンクションへのアクセス権を付与するポリシーの作成を参照してください