Creating a Terraform Artifact with Automate Stack Validation

Partner Portal introduces the automatic validation of your stack listings.

With Stack validation automation feature, you can create a stack artifact from Partner Portal and the created stacks are automatically validated by accessing the validation information from Oracle Resource Manager.

Creating Terraform Artifact

Prerequisite

Add policies to your tenancy to let the Marketplace service inspect stacks and stack jobs in Partners tenancy. Policies are similar to what is required currently for image validation:

  • ALLOW SERVICE marketplace to read tenant IN TENANCY (prerequisite for current image
              validation)
    
  • ALLOW SERVICE marketplace to read compartments IN TENANCY (prerequisite for current
              image validation)
  • ALLOW SERVICE marketplace to read orm-stacks IN TENANCY (new policy
              required for stack validation)
  • ALLOW SERVICE marketplace to read orm-jobs IN
              TENANCY (new policy required for stack validation)

To create a Terraform Artifact, do the following:

  1. Sign in to Oracle Cloud Marketplace Partner Portal.
  2. Click Artifacts. The Artifacts page displays information such as artifact name and other details related to the artifacts.
  3. Click Create Artifact.
  4. In the Artifact Type list, select Terraform Template.
  5. In the Artifact Name field, enter a name for the artifact. Ensure that the length of the name is fewer than 200 characters.
  6. Click the Search icon next to the Stack OCID field to select a valid stack available for your tenancy, region, and compartment. The OCI Stacks dialog box appears.
    1. Select an Oracle Cloud Infrastructure tenancy, region, and compartment. Stacks, which match your selection, are displayed with details such as stack name, source stack OCID, and created date.
    2. Identify a Stack from the list, and then click Select to load the selected artifact.
  7. Review the mandatory stack guidelines specified at Guidelines for Stacks, and then select the I have reviewed and applied all the mandatory image guidelines check box.
  8. Click Create.

From an Automated stack validation perspective, successful or Passed Stacks are those stacks whose:

  • Latest "Operation" of "APPLY" is "SUCCEEDED"
  • Latest "Operation" of "DESTROY" is "SUCCEEDED"