Skip to main content

Prerequisites

Overview​

Before you connect your Oracle Cloud Infrastructure (OCI) tenancy to Upwind, make sure the requirements on this page are in place. Onboarding deploys a Terraform module in your tenancy, so most requirements concern the identity and machine that run Terraform.

tip

The readiness check in the onboarding flow runs upwindctl oracle onboarding preflight, which validates most of these prerequisites for you - permissions, home region, identity domain, Vault, service limits, and leftovers from an earlier onboarding - before Terraform creates anything.

Checklist​

  • An active OCI tenancy, and an identity that can administer it.
  • The tenancy OCID, home region, and orchestrator compartment OCID.
  • Terraform, the OCI CLI, and optionally upwindctl installed and authenticated.
  • Enough service limit headroom for an identity domain, policies, and a Vault.
  • Outbound HTTPS access from the machine that runs Terraform.

1. Oracle Cloud Tenancy​

  • An active OCI tenancy. Onboarding covers the whole tenancy, including all of its compartments.
  • Access to the Oracle Cloud Console with tenancy-level access.
  • A compartment to act as the orchestrator compartment. Upwind creates its own resources here, including the Vault with the Upwind credentials and the Cloud Scanner infrastructure. For example, a compartment named upwind.
Recommendation

We recommend using a dedicated compartment for Upwind that contains no other workloads as the orchestrator compartment, rather than the root compartment (the tenancy itself) or an existing compartment that runs other workloads.

2. Information to Collect​

Have the following values ready. You enter them in the Upwind Management Console in Step 1 of the instructions, and they are pre-filled in the Terraform snippet.

ValueWhere to find itNotes
Tenancy OCIDOracle Cloud Console - Administration > Tenancy DetailsStarts with ocid1.tenancy..
Home RegionOracle Cloud Console - Administration > Tenancy DetailsFor example, us-ashburn-1. The Terraform module must run against this region.
Orchestrator Compartment OCIDOracle Cloud Console - Identity & Security > Compartments, then select the compartmentStarts with ocid1.compartment.. Must be an OCID, not a compartment name. A dedicated compartment is recommended, rather than the root compartment (tenancy OCID).
Identity Domain OCID (optional)Oracle Cloud Console - Identity & Security > Domains, then select the domainOnly if you want to use an existing identity domain instead of letting the module create one.

3. Required Permissions​

Permissions to Run the Terraform Module​

The identity that runs the Terraform module creates IAM users, a dynamic group, policies, an identity domain, and a Vault. Members of the tenancy's Administrators group already have everything required.

If you use a dedicated, non-administrator group, it needs the following grants:

Policy StatementWhy it is needed
manage users in tenancyCreate the management, reader, and Cloud Scanner IAM users at the tenancy root.
manage dynamic-groups in tenancyCreate the Cloud Scanner dynamic group at the tenancy root.
manage policies in tenancyAttach the Upwind and Cloud Scanner policies at the tenancy and orchestrator compartment levels.
manage domains in tenancyCreate the Upwind identity domain and replicate it to every subscribed region. Not needed if you use an existing identity domain.
manage vaults in compartment <orchestrator>Create the Vault that stores the Upwind credentials.
manage keys in compartment <orchestrator>Create the encryption key for the Vault secrets.
manage secrets in compartment <orchestrator>Write the Upwind client and Cloud Scanner credentials as Vault secrets.
use tag-namespaces in tenancyOnly if you set defined_tags. Applying a defined tag requires use of its namespace.

For example, for a group named upwind-deployers in the Default identity domain:

Allow group 'Default'/'upwind-deployers' to manage users in tenancy
Allow group 'Default'/'upwind-deployers' to manage dynamic-groups in tenancy
Allow group 'Default'/'upwind-deployers' to manage policies in tenancy
Allow group 'Default'/'upwind-deployers' to manage domains in tenancy
Allow group 'Default'/'upwind-deployers' to manage vaults in compartment <orchestrator>
Allow group 'Default'/'upwind-deployers' to manage keys in compartment <orchestrator>
Allow group 'Default'/'upwind-deployers' to manage secrets in compartment <orchestrator>
Using an existing identity domain

If you use an existing identity domain, the identity that runs Terraform must also hold an administrator role in that domain, such as Identity Domain Administrator. Upwind's users, groups, and OAuth application are created inside the domain, and this access is separate from OCI IAM policies.

Good to know

These permissions are needed to apply, update, and remove the module. They are not used by Upwind after onboarding.

Permissions to Run the Readiness Check​

upwindctl oracle onboarding preflight is read-only. It needs to read IAM (compartments, policies, groups, and domains), Vault and KMS, and service limits (inspect limits in tenancy). Members of the Administrators group already have this access.

Permissions Granted to Upwind​

The Terraform module grants Upwind least-privilege access:

  • Read access across the tenancy, excluding object contents and secret values.
  • Access to Upwind's own secrets in the Vault in the orchestrator compartment, so Upwind and its Cloud Scanners can read the Upwind credentials.
  • Permission to deploy compute and functions for Cloud Scanners in the orchestrator compartment only.
  • No IAM write access.

For the complete, up-to-date list of policies the module creates, see the terraform-oci-onboarding repository .

4. Home Region​

Run Terraform against your tenancy's Home Region: set oci_region in the module to the home region, and make sure your OCI CLI profile targets it. OCI accepts changes to users, groups, dynamic groups, and policies only in the home region, so an apply from any other region fails.

5. Service Limits​

The module creates resources that count against tenancy service limits. Check that you have headroom for:

  • Identity domains - one new domain, unless you use an existing one.
  • Policies and policy statements - several policies at the tenancy and orchestrator compartment levels.
  • Vaults - one virtual Vault in the orchestrator compartment.

You can view your limits on the Limits, Quotas and Usage page of the Oracle Cloud Console. The readiness check also reports any limit that would block the apply.

6. Tools​

Install the following on the machine that runs the Terraform module:

ToolVersionPurpose
Terraform 1.9 or laterDeploys the onboarding module.
OCI Terraform provider (oracle/oci)8.0.0 or laterDownloaded automatically by terraform init.
OCI CLI LatestAuthenticates to your tenancy, and deactivates the identity domain when offboarding.
upwindctl (recommended)LatestRuns the read-only readiness check before you apply the module.

Configure a profile in ~/.oci/config for the identity that runs the deployment. The OCI CLI, the OCI Terraform provider, and upwindctl all read this file. You can use either:

  • An API key profile - create one interactively with oci setup config.
  • A session token profile - sign in through the browser with oci session authenticate. Session tokens are short-lived and need refreshing for longer sessions.

The instructions show how to point Terraform at either type of profile.

7. Network Requirements​

  • The machine that runs Terraform needs outbound HTTPS (port 443) access to:
    • The Oracle Cloud APIs.
    • The Upwind API.
    • The Terraform Registry (registry.terraform.io), from which terraform init downloads the Upwind module and the OCI provider. If your network blocks it, mirror the module and provider to a private registry or a local provider mirror, and point Terraform at them.
  • No inbound rules are required in your tenancy.

Time Requirements​

The integration typically takes:

  • Initial Setup: 15-20 minutes. Creating and replicating the identity domain and Vault can take longer in some tenancies.
  • First Scan: 30-60 minutes depending on tenancy size.
  • Full Discovery: 2-4 hours for complete resource inventory.

Next Steps​

Once you have confirmed all prerequisites are met, proceed to the setup instructions to connect your Oracle Cloud Infrastructure tenancy to Upwind.