Altostra Docs

    ›Working with environments

    Getting Started

    • Overview
    • Connect your accounts
    • Install the developer tools
    • Log in from the CLI

    Tutorials

    • Create a Static Website
    • Create a Scalable Webhook
    • Create a Simple API Project
    • Try Altostra without connecting cloud accounts
    • CI/CD with Altostra CLI and Github Actions

    How To

      Working with projects

      • Create a new project
      • Deploy a project
      • Manage a project

      Working with environments

      • Manage an environment
      • Configure deployments expiration for an environment

      Working with the Editor

      • Grant access to vendor services
      • Use the Parameter Store
      • Use a custom CloudFormation resource
      • Attach a custom policy to a Function
      • Connect a Function to VPC
      • Add filter policy to SNS subscription

      Organization account settings

      • Set General Settings
      • Connect a Git account
      • Connect Cloud Accounts
      • Manage log aggregation accounts

    CLI

    • Altostra CLI
    • Commands

      • templates
      • new
      • init
      • push
      • deploy
      • sls-deploy
      • sync
      • invalidate
      • console
      • environments
      • images
      • deployments
      • build
      • local run
      • config
      • login
      • logout
      • whoami
      • api-key

      Options

      • --debug
      • --verbose
      • Scripting options
    • Configuration files

    Errors And Solutions

    • Autnentication Required

    Technical Reference

    • Environments
    • Playground Environment
    • Deployments
    • Project image
    • Image Repository
    • Log Shipping
    • Deployment Modes
    • Altostra Cloud Integration

    Configure deployments expiration for an environment

    The Deployments Expiration policy enables you to automatically delete stale deployments that pass an expiration period and keep environments clean. The policy can be enabled per environment and applies to the deployments it contains.

    The expiration period count starts from the last update made to the deployment, so as long as you're updating the deployment, it keeps living.

    Important: When you set an expiration period on an environment, all existing deployments in that environment are evaluated for expiration and deleted if they fit the criteria. Verify your intent and that you are working on the correct environment before you apply this setting.

    Enable deployments expiration

    1. Go to Environments and click on the environment you want to enable deployments expiration for.
    2. Click on the Settings tab.
    3. Set the expiration period in Delete Deployments After.
    4. Click Save Changes

    Disable deployments expiration

    1. Go to Environments and click on the environment you want to disable deployments expiration for.
    2. Click on the Settings tab.
    3. Set Delete Deployments After period to 0.
    4. Click Save Changes
    ← Manage an environmentGrant access to vendor services →
    • Enable deployments expiration
    • Disable deployments expiration
    © 2020 Altostra, Inc.