Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 我如何获得当前的组织';AWS CDK中的身份证?_Amazon Web Services_Aws Cdk - Fatal编程技术网

Amazon web services 我如何获得当前的组织';AWS CDK中的身份证?

Amazon web services 我如何获得当前的组织';AWS CDK中的身份证?,amazon-web-services,aws-cdk,Amazon Web Services,Aws Cdk,AWS中的构造具有this.account,它将返回当前AWS帐户ID,但如何获取当前组织ID 此信息可通过命令行aws organizations Description organization获得,如有必要,我可以通过环境变量传递,但我更喜欢使用CDK代码

AWS中的构造具有
this.account
,它将返回当前AWS帐户ID,但如何获取当前组织ID

此信息可通过命令行
aws organizations Description organization
获得,如有必要,我可以通过环境变量传递,但我更喜欢使用CDK代码