The ability to run a new agent in your infrastructure. This isn't required if you're using Serverless deployment.
The ability to configure Gitlab CI/CD for your project. This isn't required if you used the Dagster Cloud Gitlab app to connect your project as a code location.
While you can use your existing production agent, we recommend creating a dedicated branch deployment agent. This ensures that your production instance isn't negatively impacted by the workload associated with branch deployments.
AMAZON ECS AGENTS
Deploy an ECS agent to serve your branch deployments. Follow the ECS agent setup guide, making sure to set the Enable Branch Deployments parameter if using the CloudFormation template. If you are running an existing agent, follow the upgrade guide to ensure your template is up-to-date. Then, turn on the Enable Branch Deployments parameter.
If you're using Serverless deployment, this step isn't required. Skip to the next step.
In this step, you'll update the Gitlab CI/CD config to set up Docker registry access.
In the .gitlab-ci.yml file, uncomment the step associated with your registry. For example, for the Gitlab container registry, you'd uncomment the following portion of the .gitlab-ci.yml file:
Now that Branch Deployments are configured, you can check out the preview in Dagster Cloud, by accessing the branch deployment from the deployment switcher: