-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS CLI version 2 #80956
Comments
the aws python ecosystem is a monumental pain. Each "patch" release usually has breaking changes and it's hard to gauge what version the majority of the ecosystem supports. That being said, the awscli package uses cc @muflax (maintainer) |
That doesn't surprise me very much. I am not in any immediate need for this package, but I can take a swing at trying to get in packaged when I have some free time. |
ATM I'm using something like this if it helps: let
pkgs = import <nixpkgs> {};
awscli = with pkgs; stdenv.mkDerivation {
name = "awscli";
src = fetchzip {
url = https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip;
sha256 = "1pqvqhxbikqnji7nazvaqnk2czlmr3kvs1zyl13w96ym4if3np1v";
};
propagatedBuildInputs = with pkgs; [
];
installPhase = ''
mkdir -p $out/bin
./install -i $out -b $out/bin
'';
};
in pkgs.buildFHSUserEnv {
name = "awscli";
targetPkgs = pkgs: with pkgs; [
awscli
groff
];
profile = ''
export C_INCLUDE_PATH=/usr/include:$C_INCLUDE_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${awscli}/v2/dist
'';
} Then 11:39 barak@berkos:/tmp/awscli $ nix-build
/nix/store/8kmna6m3d46n74ffd2lfq5808sw49c5j-awscli
11:39 barak@berkos:/tmp/awscli $ ./result/bin/awscli
awscli-chrootenv:barak@berkos:/tmp/awscli$
awscli-chrootenv:barak@berkos:/tmp/awscli$ aws cloudformation help
... |
This is working for me in an overlay: https://github.com/hackworthltd/hacknix/blob/master/pkgs/awscli/2.0/default.nix |
It appears the bash completion is not working, but the utilities seem to work so far, including SSO support. |
The overlay proposed by @dhess worked for me on macOS as well. I bumped up the version to following:
|
Hey, I'm pretty new to nix here. Does anyone have any suggestions on how to use @dhess 's code with home-manager until the official package gets updated? |
This can be done using an overlay: I would just create something like a Another option would be to just open a PR where you do the changes and merge it into master (although this won't be an immediate change) |
Thanks for the help. Sorry I'm a little dense here and I realize this isn't a support forum, if there is somewhere better to ask this question I'd be glad to take it elsewhere. I can't seem to get it to work as an overlay. I put dhess' code in and have this in my
but when I
I'm sure I don't really understand how overlays work. |
Inlining @dhess's code into the snippet from the wiki link above, I got https://gist.github.com/rgoulter/075268b116294b773a17aa4efe51e6c7 Putting the contents from this gist in |
@rgoulter Thanks so much for the help. I was originally getting thrown by how to convert the Your version installed great. I had some trouble running it, Thanks a bundle. |
I am going to take a swing at packaging version 2 of this CLI and get it merged into As v2 is not backwards compatible with v1 should the version 2 of the cli be packaged separate from the existing I can foresee issues if we just bump the existing package to v2 all kinds of existing scripts and automatons could break. |
for But for |
I spun my wheel locally trying to get something to work. I don't seem to grok the nix ecosystem enough yet. I'm gonna give another try this weekend when I find some time. I'd love if someone else gets to this too. |
I am also interested in having this package available in nixpkgs but have not yet contributed before. I have an overlay working here with a slightly more recent version of awscli 2: EDIT: Took a stab at a derivation. |
I think this issue can be closed now: https://nixos.org/nixos/packages.html?channel=nixpkgs-unstable&query=awscli2 |
agreed |
A few weeks ago [1] amazon released
v2.0.0
of their CLI. I do not see any open issues or MR to try and package this tool yet.Project description
The AWS Command Line Interface (CLI) is a unified tool to manage your AWS services. With just one tool to download and configure, you can control multiple AWS services from the command line and automate them through scripts.
Metadata
[1] https://aws.amazon.com/blogs/developer/aws-cli-v2-is-now-generally-available/
The text was updated successfully, but these errors were encountered: