Tenant Deprovisioning / Decommissioning

⭐️⭐️🛬 Landing ZoneEstablish a process for safely decommissioning and deprovisioning cloud tenants that are no longer needed by application teams.

At the start of an organization’s cloud journey, cloud foundation teams focus on the challenge of Tenant Provisioning, giving little afterthought to “day-2” challenges. After all, supporting cloud adoption is the key imperative at this stage. As most cloud foundation teams have to find out the hard way, the initial surge of excitement about bringing more internal customers into the cloud soon turns into an operational chore. Some of your application teams will inevitably abandon their projects. When they forget to decommission all cloud infrastructure, the organization ends up with zombie workloads.

💡 Establishing a clean tenant decommission process is paramount for avoiding problems like abandoned “zombie workloads” that pose a security risk and incur uncontrolled cloud spend.

Tackle Zombie Workloads with Clear Decommissioning Responsibilities

Most zombie workloads are the result of unclear responsibilities - not malice. When investigating the chain of unfortunate events that leads to them, cloud foundation teams often hear a series of excuses from their customers.

  • “I didn’t create that AWS Account, so I didn’t consider it my job to delete it!”

  • “Deleting that GCP Project brought up a scary confirmation dialog about losing all data forever! I didn’t feel sure if there isn’t something important worth saving in there so I just left it.”

  • “When the project team was wound down, I took on responsibilities in a new project and assumed one of my old colleagues would delete the Azure Subscription.”

If any of those situations happen in your organization, the cloud foundation team needs to establish and communicate its Shared Responsibility Model Alignment better.

Proven Patterns for Implementing a Cloud Tenant Decommissioning Process

Tenant decommissioning is a fundamental tenant management process. Cloud foundation teams will need it to implement higher-level capabilities in the Tenant Management pillar like Multi-cloud tenant database integrated with lifecycle management.

Plan for Involuntary Decommissioning

Setting clear boundaries and expectations with a Shared Responsibility Model Alignment is crucial. Unfortunately, the cloud foundation team sometimes has to enforce these boundaries. For example, cloud foundation teams may find internal customers

In these cases, the cloud foundation team needs the capability and authorization to forcefully decommission cloud tenants in their workload.

Consider Data Retention and Recovery Requirements

Decommissioning a cloud tenant results in the destruction of all workload and data stored in the cloud tenant. While systems that were not used productively will typically not have relevant data that needs to be kept, productive systems may require special precautions. Regulations for the financial service industry for example can require that organizations maintain records processed in systems (and the means to read them!) for a minimum period of 10 years.

💡 A good Cloud Tenant Tagging concept that’s consistently applied can help cloud foundation teams quickly determine if decommissioning a cloud tenant requires special precautions, for example, if the tenant was used for productive workloads.

Another consideration is that cloud tenants very often also hold other valuable resources like public IP Addresses, DNS Records, and Cryptographic Keys (e.g. SSL Certificates, Encryption Keys) that may be used well beyond the scope of an individual IT System. Public cloud providers are multi-tenant environments. Cloud resources like IP Addresses and DNS Names may be reused by other customers of the cloud provider. This can open attack vectors for phishing or spoofing. Some examples that cloud foundation teams should be aware of

Security Implications of Automated Tenant Decommissioning

Scenarios like Playground / Sandbox Environments call for automation of tenant decommissioning. However, an automation system capable of deleting most of an organization's cloud workload with only a handful of API calls is a big security risk and conversely an attractive attack target. To mitigate this risk, automation systems for tenant decommissioning should include checks and balances. Useful mitigations are

  • 4-eye principle approval processes for tenant deletion

  • restrict the automation’s permissions to non-productive tenants (e.g. designated by landing zone or Cloud Tenant Tagging)

Decommissioning of AWS Accounts Best Practices

AWS Organizations has important caveatsopen in new window to consider when closing organization member accounts.

  • Closed accounts will be suspended and then follow a staged close processopen in new window until termination.

  • Organization member accounts can only be closed by logging in with the account root user, this typically requires a password reset procedure that’s difficult to automate.

  • AWS Account root email addresses cannot be reused.

  • AWS will continue to charge for reserved instances and saving plans even after the account has been closedopen in new window.

  • AWS will stop on-demand billingopen in new window as soon as the account is closed. However, on-demand charges for any workload that is not explicitly deleted before account closure will be incurred when the account is reinstated during the post-closure period.

Considerations for Decommissioning OpenStack Projects

OpenStack does not include a process for deleting all cloud resources when deleting a project in Keystone. Cloud foundation teams thus need to ensure deletion of all of a project’s cloud resources in each OpenStack service (Nova, Neutron, Cinder, ...) in order to avoid creating orphaned workloads.

  • meshStack

    meshStack automates tenant lifecycle management for private cloud platforms OpenStack and Cloud Foundry including decommissioning. An automated resource check ensures customers delete all workload before decommissioning the tenant.

    Learn More open in new window
  • GCP Fabric FAST

    With the project factory, GitOps-based tenant provisioning can be applied. As the project configs should better be reviewed by a cloud foundation member, it is not full self-service for the end users. When removing the project definition again, the tenant will be deprovisioned by terraform.

    Learn More open in new window
  • GCP CFT - Example Foundation

    With stage 4-projects you can define projects, but you have to touch Terraform files to create or change projects. This feels more like coding instead of configuring it as it is done with Fabric FAST. So this approach of modifying Terraform does not seem to result in the best GitOps flow for managing projects.

    Learn More open in new window
  • Azure CAF Terraform Modules

    There is a mechanism called subscription vending machine to create subscriptions for EA and MCA. But since it wasn’t documented we haven’t tried it.

    Learn More open in new window