I want to create a deployment project with two steps. The first step creates the infrastructure (ELB, RDS…) with a cloudformation template. I want to capture the outputs of the stacks for the second step which deploy a website.
Thanks for getting in touch! Octopus captures your CloudFormation outputs and stores them in output variables. These can then be called in subsequent deployment steps by referencing the CloudFormation step name and variable name. Using the variable substitution syntax, you could call it with #{Octopus.Action[Step_Name].Output.Var_Name}, or in PowerShell with $OctopusParameters["Octopus.Action[Step_Name].Output.Var_Name"]. You can read more about the CloudFormation Template step in the following documentation page.
I hope this helps! Don’t hesitate to reach out if you have any further questions going forward.