aws-toolkit-azure-devops icon indicating copy to clipboard operation
aws-toolkit-azure-devops copied to clipboard

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

Open lestephane opened this issue 6 years ago • 7 comments

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?

lestephane avatar Jan 13 '18 06:01 lestephane

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.

stevejroberts avatar Jan 15 '18 16:01 stevejroberts

Thanks, that's progress of sorts

lestephane avatar Jan 15 '18 17:01 lestephane

@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!

karl-barbour avatar Aug 09 '18 11:08 karl-barbour

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.

stevejroberts avatar Aug 15 '18 15:08 stevejroberts

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.

ghost avatar Sep 28 '18 11:09 ghost

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

Tingle01 avatar Jul 26 '21 12:07 Tingle01

@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.

abbotware avatar Oct 22 '23 20:10 abbotware