簡體   English   中英

Azure 管道 AWS Powershell 腳本任務

[英]Azure Pipeline AWS Powershell script task

我想在我的 AWS Elastic Beanstalk 中使用 powershell 來安裝一些 windows 功能(即 web 套接字)。

我找到了這個https://docs.aws.amazon.com/vsts/latest/userguide/awspowershell-module-script.html但我不知道,我找不到與此等效的任務。 目前在我的管道中,我有這個

      - task: AmazonWebServices.aws-vsts-tools.awsshellscript.awsshellscript@1
        displayName: 'Install Web Socket Protocol'
        inputs:
          scriptSource: 'inline'
          script: 'Install-WindowsFeature -name Web-WebSockets'
          awsCredentials: 'AWS-test'
          regionName: 'ap-southeast-2'
          applicationName: 'test'
          environmentName: 'test-staging'

但是這個運行在 bash shell 腳本上。 powershell 腳本的等效任務是什么?

Azure 管道 AWS Powershell 腳本任務

您正在尋找的應該是擴展AWS Toolkit for Azure DevOps

Amazon S3、AWS Elastic Beanstalk、AWS CodeDeploy、AWS Lambda 和 AWS CloudFormation 等的任務,以及在 Windows PowerShell 模塊和 AWS CLI 模塊的 AWS 工具中運行命令

安裝此擴展后,我們可以添加任務 AWS Tools for Windows PowerShell 腳本:

在此處輸入圖像描述

- task: AmazonWebServices.aws-vsts-tools.AWSPowerShellModuleScript.AWSPowerShellModuleScript@1
  displayName: 'AWS Tools for Windows PowerShell Script: '
  inputs:
    awsCredentials: 'AWS-test'
    regionName: xxxx
    arguments: xxxx
    scriptType: inline

希望這可以幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM