multi-account-landing-zone — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited multi-account-landing-zone (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
huaweicloud_organizations_policy_attach (SCPs without attach are ineffective)terraform init + terraform validateUse this skill when the user asks to:
modules/ # Shared reusable Terraform modules
├── rgc-landing-zone/ # RGC setup (dual path: RGC-managed or raw Organizations)
├── org-units/ # OU hierarchy (max 2 levels)
├── accounts/ # Account creation (regular + security accounts)
├── scp/ # SCP baseline-01 (IAM guard) + policy_attach (always)
├── iam-agencies/ # Cross-account agencies + custom policies
├── identity-center/ # Permission sets + group assignments
├── vpc-baseline/ # VPC + Subnet + Security Group
├── compute/ # KPS keypair + ECS instances
└── tagging/ # FinOps/Sec tag schema
landing-zone/ # Governance workspace (single remote state)
├── main.tf # Composes governance modules
├── provider.tf # master_account + new_account + OBS backend
├── variables.tf
├── outputs.tf
└── Variables/
├── non-prod.tfvars
└── prod.tfvars
accounts/ # Per-account infrastructure workspaces
├── <account-name>/ # Each = independent TF state
│ ├── main.tf # Composes: vpc-baseline, compute, tagging
│ ├── provider.tf # assume_role into account
│ ├── variables.tf
│ ├── outputs.tf
│ └── Variables/
│ └── non-prod.tfvars
└── ...| Decision | Choice |
|---|---|
| RGC vs raw Organizations | Dual path — ask user at start |
| OU depth | Max 2 levels (L1: IT + business lines, L2: environments) |
| SCP | Baseline-01 (IAM guard) always + policy_attach always included |
| Policy attach | ALWAYS included (SCPs without attach are ineffective) |
| Workspace structure | Modular |
| Account infra | Parallel accounts/ dir, each account = independent workspace |
| Account modules | Fine-grained: vpc-baseline, compute, tagging |
| Governance state | Single remote state in landing-zone/ |
| Account state | Per-account remote state in accounts/<name>/ |
Ask the user these questions before generating any code:
Generate all files based on answers. Module source code already exists in modules/. Compose them in:
landing-zone/main.tf — root composition of governance moduleslanding-zone/Variables/*.tfvars — populated from user answersaccounts/<name>/ — copy from accounts/_template/ and customize for each account that needs infrastructureRun terraform init and terraform validate in both landing-zone/ and each accounts/ workspace.
Fix common issues:
huaweicloud_organizations_policy_attach (SCPs without attach)depends_on for OU hierarchyhuaweicloud_rgc_landing_zone — Initial setup (home region, Identity Center, logging/audit accounts, region config)huaweicloud_rgc_organizational_unit — RGC-managed OUs (CORE + CUSTOM types)huaweicloud_rgc_account — RGC-managed accounts (with optional blueprint)huaweicloud_rgc_control — Governance controls on OUsfor_each (IT, business lines, security OUs)for_each + depends_on on level-1OrganizationAccountAccessAgency patternhuaweicloud_organizations_policy — SCP definition with inline JSONhuaweicloud_organizations_policy_attach — ALWAYS included (attach to root, OUs, or accounts)g:RequestedRegion conditionflat_scp local for flattening entity_idshuaweicloud_identity_agency — Cross-account agency creationhuaweicloud_identity_policy — Custom policieshuaweicloud_identity_policy_agency_attach — Policy-to-agency attachmenthuaweicloud_identitycenter_permission_set — Permission setshuaweicloud_identitycenter_system_policy_attachment — System policy attachmenthuaweicloud_identitycenter_account_assignment — Group-to-account assignmenthuaweicloud_vpc — VPC creationhuaweicloud_vpc_subnet — Subnet with gateway_ip, availability_zone, DHCPhuaweicloud_networking_secgroup — Security grouphuaweicloud_networking_secgroup_rule — Security group rules (ICMP baseline + custom)huaweicloud_kps_keypair — SSH key pairhuaweicloud_compute_instance — ECS instances with for_eachThe IAM guard SCP denies the following actions unless performed by approved agencies:
organizations:*:*iam:users:create/delete/updateiam:groups:create/deleteiam::createAccessKey/deleteAccessKeyiam:groups:attachPolicyV5/detachPolicyV5iam:users:attachPolicyV5/detachPolicyV5iam:agencies:attachPolicyV5/detachPolicyV5identitycenter:*:*iam:agencies:create/update/deleteExcepted principals (StringNotMatch on g:PrincipalUrn):
sts::*:assumed-agency:hwc-biso-admin-agency*sts::*:assumed-agency:hwc-cpe-rw-agency*sts::*:assumed-agency:SysReservedV3_PS-hwc-teco-ar-biso-sample*sts::*:assumed-agency:SysReservedV3_RGCAdministratorAccess_*sts::*:assumed-agency:SysReservedV3_RGCOrganizationsFullAccess_*sts::*:assumed-agency:SysReservedV3_RGCPowerUserAccess_*sts::*:assumed-agency:SysReservedV3_RGC_COE_CLOUD_CPE_RW_*Optional: Add g:RequestedRegion condition to restrict to specific region.
provider "huaweicloud" {
alias = "master_account"
region = var.region
}
data "huaweicloud_organizations_accounts" "this" {
provider = huaweicloud.master_account
name = var.new_account_name
}
provider "huaweicloud" {
alias = "new_account"
region = var.region
assume_role {
agency_name = "OrganizationAccountAccessAgency"
domain_id = data.huaweicloud_organizations_accounts.this.accounts[0].id
}
}provider "huaweicloud" {
region = var.region
assume_role {
agency_name = var.agency_name
domain_id = var.account_id
}
}terraform {
backend "s3" {
bucket = "terraformbucket"
key = "landing-zone/terraform.tfstate"
region = var.region
endpoints = {
s3 = "https://obs.<region>.myhuaweicloud.com"
}
skip_region_validation = true
skip_credentials_validation = true
skip_metadata_api_check = true
skip_requesting_account_id = true
skip_s3_checksum = true
}
}For account workspaces, change the key to accounts/<account-name>/terraform.tfstate.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.