GithubHelp home page GithubHelp logo

Comments (9)

stevejroberts avatar stevejroberts commented on June 1, 2024 5

v1.0.14 is now released with a new task to push an image to an ECR registry.

HTH

from aws-toolkit-azure-devops.

stevejroberts avatar stevejroberts commented on June 1, 2024

We don't currently have a task that can deploy an image to ECR. I've added the request to our backlog of new features to address.

In the meantime, there are a couple of options that might work for you:

  1. The AWS CLI has a get login command that will retrieve the necessary login command for ECR.
  2. A similar command, Get-ECRLoginCommand is also available in the AWS Tools for PowerShell (both desktop and PowerShell Core editions). As you are using Linux you would need to install PowerShell 6 and install the AWSPowerShell.NetCore module to get to this command.

from aws-toolkit-azure-devops.

cameronattard avatar cameronattard commented on June 1, 2024

You can use the Docker tasks with ECR if you install amazon-ecr-credential-helper on your agents.

from aws-toolkit-azure-devops.

Tharnas avatar Tharnas commented on June 1, 2024

Many thanks for your help.

@cameronattard: amazon-ecr-credential-helper looks interesting but I don't really like to persist my credentials on the build server.

from aws-toolkit-azure-devops.

Tharnas avatar Tharnas commented on June 1, 2024

@steveataws: I installed PowerShell 6 on linux but I cannot trigger the deployment of a release. The following error message is shown:

There are issues with the release definition that may prevent deployment of release

Issues with Environment '<environment name>':
Issues with deploy phase 'Run on agent' - No agents could be found that match the following demands (queue: '<build agent name>'): DotNetFramework

Do you want to queue the release anyway?

In case I continue it breaks with the following error in the "Run on agent" step:

Deployment on this environment was cancelled.

from aws-toolkit-azure-devops.

stevejroberts avatar stevejroberts commented on June 1, 2024

Were you trying to run the 'AWS Tools for Windows PowerShell Script Task' by any chance? That task is for the Windows desktop version of PowerShell, and our corresponding module named AWSPowerShell, hence it has a dependency on the 'full' .NET framework.

To run in PowerShell Core on Linux, you need to get the module named AWSPowerShell.NetCore. Start PowerShell Core on Linux and run install-module AWSPowerShell.NetCore.

Once the Linux agent is set up with the installs, you'll need to concoct some form of a shell task to run PowerShell and a script using the NetCore version of our module. I haven't recently looked at the built-in TFS PowerShell tasks to see if any of them now support running PowerShell Core on Linux. If they don't, a shell script to launch PowerShell, set up credentials and then run a script using the AWSPowerShell.NetCore cmdlets would need to be put together.

In a future release we want to circle back and add a task to run scripts using our AWSPowerShell.NetCore module, with the auto-install capability of our existing task. We've some research yet though to figure out best approaches.

from aws-toolkit-azure-devops.

Tharnas avatar Tharnas commented on June 1, 2024

Ah ok, my bad. Thanks for clarifying!

from aws-toolkit-azure-devops.

Tharnas avatar Tharnas commented on June 1, 2024

Many thanks. Works like a charm!

from aws-toolkit-azure-devops.

stevejroberts avatar stevejroberts commented on June 1, 2024

Good to know! Resolving request.

from aws-toolkit-azure-devops.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.