Cloud resource hierarchy
Why organize cloud resources?
Imagine the bookstore has a live shop and a test shop. Both use a web server, storage and a database. If everything belongs to one unrestricted administrative space, a test deployment can accidentally affect customer orders. A resource hierarchy groups cloud resources so that teams can assign ownership, apply governance and track spending at useful boundaries.
A resource is a managed object, such as a virtual machine or a storage bucket. A scope identifies the set of resources to which a rule or permission may apply. Start by separating production (real customers) from nonproduction (development and testing). This is an architectural decision, not a guarantee of isolation: access policies, network paths and shared dependencies still need review.
AWS: organizations, units and accounts
An AWS account is a boundary for managing resources, access and costs. It is not the same thing as a person's sign-in identity. AWS Organizations lets an organization administer multiple accounts together. An organizational unit (OU) groups member accounts or other OUs; it is not itself an account for hosting an application.
A small fictional organization might place separate shop accounts under production and nonproduction OUs. Keep routine workloads out of the management account. Use it for necessary organization governance rather than ordinary deployments. Organization-level restrictions can constrain member-account access, but a restriction is not a permission grant. Actual access requires appropriate identity or resource permissions as applicable.
Bookstore AWS organization management account (governance) Production OU shop-prod account -> live app and data Nonproduction OU shop-test account -> test app and synthetic dataThis text diagram is illustrative, not an account-creation procedure. Centralized billing does not mean every user gains access to every member account.
Azure: identity tenant and management scopes
Microsoft Entra ID provides a directory and identity services. An Azure subscription relies on a tenant for identity; a tenant is not the same object as a subscription. Management groups provide governance scopes above subscriptions. Subscriptions contain resource groups and other subscription-scoped objects. Resource groups collect related resources for lifecycle and management purposes.
Bookstore Entra tenant (identity relationship) management group hierarchy prod subscription shop-prod resource group -> web app and storage test subscription shop-test resource group -> test resourcesA resource group is not an independent identity directory or a separate invoice by definition. Permissions assigned at a broader Azure scope may apply to its descendants. Use narrowly scoped role assignments; verify inherited access before concluding that a resource is private. Think about resource-group deletion as a lifecycle operation that can remove its contents, not a harmless way to rename a folder.
Google Cloud: organizations, folders, projects and billing
A Google Cloud organization can contain folders and projects. Folders help group related projects and apply governance. Projects hold service resources and provide useful boundaries for administration and usage attribution. Not every standalone project has an organization parent; the diagram assumes an organization exists.
Bookstore Google Cloud organization Production folder shop-prod project -> live application and storage Nonproduction folder shop-test project -> test application and storage
Billing account -> linked to shop-prod and shop-test projectsThe billing link is shown separately because the Cloud Billing account is not a folder that contains the project's application resources. Paying for a project does not automatically make a billing administrator an application administrator. Resource access and billing access must be reviewed independently.
Compare boundaries without assuming equivalence
| Question | AWS | Azure | Google Cloud |
|---|---|---|---|
| Group workloads for governance | Organization and OUs | Management groups | Organization and folders |
| Common workload boundary | Account | Subscription, with resource groups | Project |
| Identity layer | IAM and federated access | Microsoft Entra ID | IAM with Google or federated identities |
| Cost attribution starting point | Account and cost allocation data | Subscription and cost data | Project and linked billing account |
These are comparison starting points, not exact equivalents. A Google Cloud project, an Azure subscription and an AWS account differ in permissions, limits, lifecycle, billing and identity. Check the service's actual supported scope. A broad inherited permission may reach test and production even if the resources sit in different containers.
Worked example: ownership and cost attribution
Use a small inventory to answer who operates each resource and which environment pays for it. The amounts below are invented budget units for one month, not provider prices.
| Resource | Environment | Owner | Cost |
|---|---|---|---|
| Web app | prod | shop-team | 40 |
| Database | prod | data-team | 60 |
| Test app | test | shop-team | 15 |
| Shared log service | shared | platform-team | 20 |
Production costs 100 units; test costs 15; shared costs 20. Total: 135. If a reviewed allocation rule assigns 75% of shared costs to prod and 25% to test, their attributed costs become 115 and 20. The total stays 135. Preserve unallocated costs if ownership evidence is missing rather than silently dropping them.
Tags or labels are metadata for classification, such as environment=prod, owner=shop-team and cost-center=retail. They are not universally inherited and not every cost item supports tagging. Verify billing-report behavior before relying on them. Do not put secrets or personal data in tags.
Practice and next steps
Draw the three hierarchies for a fictional library with a live catalog and a separate training environment. Mark the identity relationship and billing linkage, and name an owner for each application. Explain which boundary you would use for a developer's test-only permissions. Do not create real accounts or subscriptions.
Common mistake: treating a tag, a billing link or a folder name as an access control. Actual security depends on policies, permissions and other controls. Next, learn how a human operator or deployment service receives permissions within the chosen scope.
Further reading: AWS Organizations concepts, Azure Resource Manager, Google Cloud resource hierarchy, Google Cloud Billing organization.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Cloud resource hierarchy — knowledge check
Choose the best answer for each offline scenario.
What does an AWS organizational unit group?
Which Azure object provides directory identity services?
What is a Google Cloud billing account link?
Prod costs 100, test costs 15 and shared costs 20. What is the total?
What does an environment tag establish on its own?