Skip to main content

Add and Update Stack

In this section, you will learn how to add and update Stacks to Workspaces, and configure contexts.


Requirements

Add a Stack to a Workspace

Follow the steps below to add a Stack to your Workspace:

  1. Log in to your account and click on the 'Workspaces' button.

  2. Access your Workspace and click on 'Stacks' in the left-hand menu.

  3. Click on 'Add Stacks' to add your first Stack.

  4. A list of available Stacks in your account will appear on the left side of the screen. Select the Stacks you want to add to your Workspace.

    Tip

    You can search for Stacks by filtering them by name or Studio.

    Important

    If the Stack you want to add is in a Studio with restricted visibility, it may not appear in your Workspace. If this happens, contact the Studio manager to check if the visibility can be adjusted.

  5. After selecting the desired Stacks, click on the 'Add Stacks' button.

    info

    If you don’t have a published Stack yet, follow the steps to Create a Stack.

Check the steps in the GIF below:

The GIF shows the StackSpot EDP Portal within a Workspace named TW Guide. The mouse clicks on the Stacks item in the left-hand menu, then on the Add Stack button. A list of Stacks appears containing two Stacks: test-stack-1 and test-stack-2. The mouse selects the stack test-stack-1 and clicks on the Add Stack button again. The flow ends with a success message.


Update a Stack Version in a Workspace

You can update the Stacks in your Workspace when at least one of them has a new version available. Follow the steps below:

  1. Log in to your account and click on the 'Access Workspaces' button.

  2. Access your Workspace and click on 'Stacks' in the left-hand menu.

  3. A window will appear, showing which Stacks will be updated and their new versions. Click on 'Update Versions'.

You've have successfully updated the Stack version in your Workspace.


Sure! Here is the translated and adapted text for StackSpot's official documentation in English, following the style guidelines:


Explaining better:

Click here to see an detailed explanation about updating in the Stack

Consider the following scenario: "How do I update a Java/Kotlin Plugin in the Stack from version 1.x.x to 2.x.x?"


First, make sure to review the Stack versioning rules.


In this specific scenario, the Stack version will not impact your project. You need to make sure your Stack is updated in your Workspace. After that, you will be able to update the Plugin versions.


In other words, the Stack version in your stk.yaml file will never change from the initial version (from when the project was created). Once the Stack is updated in the Workspace, you will be able to access the Plugins in their latest published versions.

Another tip is to use the Stacks to find the full path of the Plugin. Follow the steps below:


  1. Access the Infra Stack;
  2. Find the Plugin you want to update;
  3. Click on the 'Plugin details' button;


  1. Open your terminal and run the command stk update plugin;
  2. Select the Plugin you want to update and enter the latest version of the Plugin, such as:
    qf4-infraestrutura/infraestrutura-aws-lambda@6.0.2.

Done. you updated a Plugin version in a Stack.


Next Steps

Requirement