Creating a Functions Environment

Learn how to create a reference to a Functions environment.

Before you begin, you must create a function.

For accessing DevOps using the Oracle Cloud Console, REST API, and CLI, see Accessing DevOps.

Using the Console

  1. Open the navigation menu and click Developer Services. Under DevOps, click Projects.
  2. Select an existing project, or create a DevOps project.
  3. Click Create environment.
  4. For Environment type, select Functions.
  5. Enter a name and optional description for the environment.
  6. (Optional) To add tags to the environment, click Show tagging options. Tagging is a metadata system that lets you organize and track the resources in your tenancy.

    If you have permissions to create a resource, you also have permissions to add free-form tags to that resource.

    To add a defined tag, you must have permissions to use the tag namespace.

    For more information, see Resource Tags.

  7. Click Next.
  8. Select the region where the functions resource is located.
  9. Select the compartment in which the functions application is located.
  10. Select the application and function to be referenced for deployment.
  11. Click Create environment.

A reference to the Functions environment is created. You can create a deployment pipeline to deploy artifacts to Oracle Functions.

Using the CLI

To create a reference to Functions environment, run the create-function-environment command:

oci devops deploy-environment create-function-environment

Required parameters for the create-function-environment command:

  • --function-id
  • --project-id

To get all the commands for deploy-environment:

oci devops deploy-environment -h

To get help for the create-function-environment command:

oci devops deploy-environment create-function-environment -h

Using the API

To create a reference to Functions environment, use the CreateDeployEnvironment operation. For the deployEnvironmentType attribute, specify the FUNCTION value.