DEV Community

Cover image for Ensure No Product Tenants Are Opened During Maintenance Mode
🚀 Vu Dao 🚀
🚀 Vu Dao 🚀

Posted on

2 2

Ensure No Product Tenants Are Opened During Maintenance Mode

Ensure No Product Tenants Are Opened During Maintenance Mode

Ensure No Product Tenants Are Opened During Maintenance Mode

🚀 How to set maintenance mode for thoudsands of tenants

  • Create a record set call alb-tunnel.cloudopz.com as a CNAME point to the ALB
  • Set aLL Tenant records point to alb-tunnel.cloudopz.com with type CNAME
  • So when it needs to set maintainance mode, we just need to set alb-tunnel.cloudopz.com point to our maitainance page

🚀 Why need to Ensure No Product Tenants Are Opened During Maintenance Mode

  • During maintainance mode, the database might be running migrated so customer should not access the site
  • We need to ensure no tenant product point to ALB directly except test/demo sites. Here is the way to manually check (free feel to automate it)
aws route53  list-resource-record-sets --hosted-zone-id Z39FXXXXXXXXXX --query "ResourceRecordSets[?Type == 'CNAME']" | jq -r '.[] | [([.Name, .ResourceRecords[].Value] | join(", "))] | @csv' | 
grep "alb-.*..amazonaws.com" | grep -Ev "test|demo" 
Enter fullscreen mode Exit fullscreen mode

🌠 Blog · Github · Web · Linkedin · Group · Page · Twitter 🌠

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Retry later