Keeping environments clean
Blog post from Octopus Deploy
Octopus Deploy 3.4 introduces machine policies, a feature designed to streamline the management of deployment targets by automatically deleting machines that are no longer available after a specified period. This update addresses the challenges of infrastructure management as it scales, particularly in auto-scaling environments where numerous machines are provisioned and terminated daily. Machine policies are most relevant to Tentacle and SSH deployment targets and can be configured via the Octopus portal, command line, or API. The policy employs health checks to determine machine availability, automatically removing those marked as "Unavailable" beyond the specified duration, thus ensuring Octopus remains synchronized with the underlying infrastructure changes.