本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
步驟 2:啟動您的登陸區域
AWS Control Tower CreateLandingZone
API需要登陸區域版本和清單檔案作為輸入參數。您可以使用資訊清單檔案來設定下列功能:
編譯資訊清單檔案後,您就可以建立新的登陸區域。
注意
AWS 控制塔不支援使用 APIs 設定和啟動登陸區域時的區域拒絕控制。使用 成功啟動登陸區域後APIs,您可以使用 AWS Control Tower 主控台來設定區域拒絕控制 。
-
呼叫 AWS Control Tower
CreateLandingZone
API。這API需要登陸區域版本和資訊清單檔案作為輸入。aws controltower create-landing-zone --landing-zone-version 3.3 --manifest "file://LandingZoneManifest.json"
LandingZoneManifest.json 資訊清單範例:
{ "governedRegions": ["us-west-2","us-west-1"], "organizationStructure": { "security": { "name": "CORE" }, "sandbox": { "name": "Sandbox" } }, "centralizedLogging": { "accountId": "222222222222", "configurations": { "loggingBucket": { "retentionDays": 60 }, "accessLoggingBucket": { "retentionDays": 60 }, "kmsKeyArn": "arn:aws:kms:us-west-1:123456789123:key/e84XXXXX-6bXX-49XX-9eXX-ecfXXXXXXXXX" }, "enabled": true }, "securityRoles": { "accountId": "333333333333" }, "accessManagement": { "enabled": true } }
注意
如 範例所示, AccountId CentralizedLogging 和 SecurityRoles 帳戶的 必須不同。
輸出:
{ "arn": "arn:aws:controltower:us-west-2:123456789012:landingzone/1A2B3C4D5E6F7G8H", "operationIdentifier": "55XXXXXX-e2XX-41XX-a7XX-446XXXXXXXXX" }
-
呼叫
GetLandingZoneOperation
API以檢查CreateLandingZone
操作的狀態。會GetLandingZoneOperation
API傳回SUCCEEDED
、FAILED
或 的狀態IN_PROGRESS
。aws controltower get-landing-zone-operation --operation-identifier "55XXXXXX-eXXX-4XXX-aXXX-44XXXXXXXXXX"
輸出:
{ "operationDetails": { "operationType": "CREATE", "startTime": "Thu Nov 09 20:39:19 UTC 2023", "endTime": "Thu Nov 09 21:02:01 UTC 2023", "status": "SUCCEEDED" } }
-
狀態傳回為 時
SUCCEEDED
,您可以呼叫GetLandingZone
API來檢閱登陸區域組態。aws controltower get-landing-zone --landing-zone-identifier "arn:aws:controltower:us-west-2:123456789123:landingzone/1A2B3C4D5E6F7G8H"
輸出:
{ "landingZone": { "arn": "arn:aws:controltower:us-west-2:123456789012:landingzone/1A2B3C4D5E6F7G8H", "driftStatus": { "status": "IN_SYNC" }, "latestAvailableVersion": "3.3", "manifest": { "accessManagement": { "enabled": true }, "securityRoles": { "accountId": "333333333333" }, "governedRegions": [ "us-west-1", "eu-west-3", "us-west-2" ], "organizationStructure": { "sandbox": { "name": "Sandbox" }, "security": { "name": "Security" } }, "centralizedLogging": { "accountId": "222222222222", "configurations": { "loggingBucket": { "retentionDays": 60 }, "kmsKeyArn": "arn:aws:kms:us-west-1:123456789123:key/e84XXXXX-6bXX-49XX-9eXX-ecfXXXXXXXXX", "accessLoggingBucket": { "retentionDays": 60 } }, "enabled": true } }, "status": "PROCESSING", "version": "3.3" } }