简体   繁体   English

AWS System Manager 和 Powershell 脚本

[英]AWS System Manager and Powershell scripts

To what extent can System Manager and Powershell communicate - specifically, can my powershell script have parameters to fetch data from the System Manager Command Parameters/Tags/etc itself? System Manager 和 Powershell 可以在多大程度上进行通信 - 具体来说,我的 powershell 脚本是否具有从 System Manager 命令参数/标签/等本身获取数据的参数?

Example: in AWS System Manager, the Command Parameter will ask for target service name, document name,etc.示例:在 AWS System Manager 中,命令参数将询问目标服务名称、文档名称等。 System Manager will serve as a drop down menu to select some 'configuration' settings. System Manager 将作为 select 一些“配置”设置的下拉菜单。

I would want my PowerShell script to take those 'drop-down' SSM selected parameters and input them IN the power shell template我希望我的 PowerShell 脚本采用那些“下拉”SSM 选择的参数并将它们输入到电源 shell 模板中

AWS Command Parameter view AWS 命令参数视图

Yes, this is possible.是的,这是可能的。 You will need to make use of the AWS Systems Manager API to interface with that service.您将需要使用AWS Systems Manager API与该服务交互。 It may also serve you well to make use of the AWS CLI instead of interacting with the REST API directly.使用AWS CLI而不是直接与 REST API 交互也可以为您提供很好的服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM