1
我在亞馬遜中使用了lambda函數。有沒有辦法從lambda函數中的python代碼獲取鏈接到AWS賬戶的電子郵件ID?如何在AWS中獲取亞馬遜帳戶電子郵件信息lambda
我在亞馬遜中使用了lambda函數。有沒有辦法從lambda函數中的python代碼獲取鏈接到AWS賬戶的電子郵件ID?如何在AWS中獲取亞馬遜帳戶電子郵件信息lambda
describe-organization
的命令在AWS Command-Line Interface (CLI)返回該信息:
aws organizations describe-organization
輸出:
{
"Organization": {
"MasterAccountArn": "arn:aws:organizations::111111111111:account/o-exampleorgid/111111111111",
"MasterAccountEmail": "[email protected]",
"MasterAccountId": "111111111111",
"Id": "o-exampleorgid",
"FeatureSet": "ALL",
"Arn": "arn:aws:organizations::111111111111:organization/o-exampleorgid",
"AvailablePolicyTypes": [
{
"Status": "ENABLED",
"Type": "SERVICE_CONTROL_POLICY"
]
}
}
AWS組織是introduced in early 2017如在層次結構中管理多個帳戶AWS的手段。