aws / aws-toolkit-azure-devops

AWS Toolkit for Azure DevOps
Other
250 stars 106 forks source link

Please provide an AWSPowerShell.NetCore compatible version of the tasks, so that Linux agents can be used #53

Open lestephane opened 6 years ago

lestephane commented 6 years ago

In the Dockerfile for my private build agent, I install the AWSPowerShell.NetCore module

#
# Install AWS Tools for PowerShell Core Edition
#
ENV AWS_POWERSHELL_VERSION=3.3.215.0
RUN pwsh \
   -c 'Install-Module -Force \
   -Name AWSPowerShell.NetCore
   -RequiredVersion ${AWS_POWERSHELL_VERSION}'

But then the DotNetFramework capability is missing. Adding it manually still causes the error

2018-01-13T06:18:13.3211110Z ##[error]A supported task execution handler was not found.
This error usually means the task does not carry an implementation that is compatible with
your current operating system. Contact the task author for more details.

Is any first-class support for AWS Powershell scripts planned for linux agents?

stevejroberts commented 6 years ago

We've been holding off adding support for automatic installation of the AWSPowerShell.NetCore module until PowerShell Core went GA. Now that's been done we will look again at this but I don't have an ETA I can share at the present time.

lestephane commented 6 years ago

Thanks, that's progress of sorts

karl-barbour commented 6 years ago

@steveataws any news on this one? I'm currently have to roll my own tasks for AWS PowerShell OR use a windows agent, neither of which are fun!

stevejroberts commented 6 years ago

Apologies, for both no news and late response. I've been pretty much focused on getting the credential changes and new tasks in the 1.1 release tidied up and didn't get back to this alongside other work.

I might be mistaken but I thought I heard recently that the hosted Linux option now contains PowerShell 6 pre-installed, is that right? If so, it might be enough to remove the Windows-only limitation from the current task (suitably renamed) and have it auto-detect it started under PowerShell 6 vs PowerShell 5.1 and install the matching module.

ghost commented 6 years ago

hi @steveataws any updates on this just hit this issues too, not a show stopper for us as we can run most of this on windows with some logic switches.

Tingle01 commented 3 years ago

hi @steveataws is there any update on this one, it would be good if we could use the AWS powershell task on linux instances.

abbotware commented 1 year ago

@stevejroberts - any update on this? Windows-Only seems like an artificial restriction given that PowerShell has been Linux compatible for a very long time now.