SDLC Asset Promotion Guide
Use this guide to set up your Software Development Lifecycle (SLDC) process in Alteryx Analytics Cloud (AAC). You can set up these processes through the AAC API or User Interface (UI).
Requirements
Dedicated AAC workspaces for separate SDLC environments. For example, Development, Testing, and Production.
Workspaces have a dedicated set of users with environment-specific roles and permissions.
Users responsible for promoting assets between environments must exist with sufficient permissions on all relevant workspaces.
Note that these users require Editor access for write permission.
Users must have relevant roles to access Designer Experience and Designer Desktop workflows.
To use Designer Desktop workflows, a Workspace Admin must configure the workspaces for Cloud Execution for Desktop.
Allow asset sharing with users on any of the environment workspaces.
Limitations
Workflow versioning is only available for Designer Experience and Designer Desktop workflows at this time.
Useful Terms
Asset ID: Unique ID for each of your assets across workspaces.
Asset Name: Editable global asset ID. Different assets can have the same Asset Name in the same workspace.
Version ID: Within an asset, a unique ID for each version across workspaces.
Version Name: Editable name to identify an asset ready for promotion. Note that this value isn't unique, and a workflow can have multiple Version Names that are the same value.
Asset Promotion Guide Using AAC APIs
Create an automated process to handle multiple Designer Experience workflows with the AAC APIs. To learn more about the AAC APIs, go to Get Started with Alteryx Analytics Cloud APIs.
From Designer Experience, create or edit a workflow in a workspace representing the Development environment.
Select Save Version from the File dropdown.
[Optional] Enter a Version Name, for example,
Production Ready
. Note that you can only view the Version Name that you enter from an API call.Select Save.
Create a GET API request to retrieve the
VersionID
that matches with the specificVersionName
.You can use
VersionName
as a filter to download only the workflows with a specificVersionName
. As a result, you will get the relevantWorkflowID
andVersionID
list.Here is a sample API call…
curl\--location 'https://us1.alteryxcloud.com/svc-workflow/api/v1/workflows?versionName[eq]=ProductionReady'\--header 'Authorization: Bearer [API TOKEN]'
Create a Download API request with the
WorkflowID
andVersionID
of the workflows you want to download locally. Note that AAC won’t accept JSON workflow files that have been modified outside of AAC.Here is a sample API call…
curl\--location 'https://us1.alteryxcloud.com/svc-workflow/api/v1/workflows/[ID]/versions/[VERSION]'\--header 'Accept: application/octet-stream'\--header 'Authorization: Bearer [API Token]'\-o ProductionReady.json
Sign in to the higher environment workspace, for example, the Production environment.
Create a POST API request to upload the previously downloaded workflows into the higher environment workspace.
Here is a sample API call…
curl\--location 'https://us1.alteryxcloud.com/svc-workflow/api/v1/workflows'\--header 'Authorization: Bearer [API Token]'\--form 'file=@"ProductionReady.json"'
If the same workflow already exists in this workspace, AAC creates a new version of that workflow upon upload.
Open the workflow and reconnect any inputs or outputs to data sources. Note that you must perform this step through the UI.
The workflow is now ready for the next stage of your SDLC process.
Asset Promotion Guide Using the AAC UI
Follow this manual process to handle Designer Experience workflows with the AAC UI.
From Designer Experience, create or edit a workflow in a workspace representing the Development environment.
Select Save Version from the File dropdown.
[Optional] Enter a Version Name, for example,
Production Ready
. Note that you can only view the Version Name that you enter from an API call.Select Save.
Go to the Library page.
For relevant workflows that you want to promote to a higher environment, select the 3-dot menu and then select Download. Note that AAC won’t accept JSON workflow files that have been modified outside of AAC.
Sign in to the higher environment workspace, for example, the Production environment.
Go to the Library page.
Select Upload then upload your workflow JSON files. Note that you can only upload 1 workflow at a time.
If the same workflow already exists in this workspace, AAC creates a new version of that workflow upon upload.
Open the workflow and reconnect any inputs or outputs to data sources.
The workflow is now ready for the next stage of your SDLC process.