Comments (9)
v1.0.14 is now released with a new task to push an image to an ECR registry.
HTH
from aws-toolkit-azure-devops.
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:
- The AWS CLI has a get login command that will retrieve the necessary login command for ECR.
- 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.
You can use the Docker tasks with ECR if you install amazon-ecr-credential-helper on your agents.
from aws-toolkit-azure-devops.
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.
@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>'): DotNetFrameworkDo 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.
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.
Ah ok, my bad. Thanks for clarifying!
from aws-toolkit-azure-devops.
Many thanks. Works like a charm!
from aws-toolkit-azure-devops.
Good to know! Resolving request.
from aws-toolkit-azure-devops.
Related Issues (20)
- Error Auth AWS Toolkit any task
- ##[error]'charmap' codec can't encode characters in position 1098-1135: character maps to <undefined> HOT 1
- Secrets Manager get secret task output not a valid json HOT 2
- AWS Service Connector
- Error when execute CLI actions using eu-south-2 region
- Pass a role ARN in runtime and use with service connection
- AWSShellScript: Keep original color when logging
- Running Terraform output command returns no result HOT 1
- S3 Upload use an endpoint
- S3 Upload Glob pattern STILL not finding files
- Azure DevOps Task 'AWS Tools for Windows PowerShell Script' - Ignore PS Module Check HOT 10
- Support for OIDC to authenticate without long lived credentials HOT 10
- Buidling code on master results in error when executing any task HOT 3
- Use s3ObjectKey or randomize S3 object name when uploading Cloudformation template
- Unable to push docker image on to amazon ECR
- AWS SSM Run Command issue with SNS Notifications
- Incompatible with IMDSv2 HOT 8
- LambdaNETCoreDeploy failing to upload to S3 with signature mismatch in version 5.8.1
- Task AWSCLI@1 fails on S3 cp command
- Ææ
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-toolkit-azure-devops.