feat(users/flokli/archeology): add AWS config to shell
This allows using awscli inside a shell. Clickhouse AWS SSO integration still seems broken unfortunately, even with https://github.com/ClickHouse/ClickHouse/pull/54347 included in our bump - it seems it's coming up with another token file path than the AWS SDK: > SSOCredentialsProvider: Unable to open token file on path: /home/flokli/.aws/sso/cache/da39a3ee5e6b4b0d3255bfef95601890afd80709.json This is the sha1sum of the sso_start_url, not the sha1sum of the session-name (nixos / f2f059b8b7298f1ad52636d67cef8b719aa83bf5). Change-Id: Ia1bdec03c4f269a7415c42c90c1f4fd3d928f770 Reviewed-on: https://cl.tvl.fyi/c/depot/+/10012 Reviewed-by: edef <edef@edef.eu> Tested-by: BuildkiteCI
This commit is contained in:
parent
47e24e6e8e
commit
c93086848f
1 changed files with 14 additions and 1 deletions
|
@ -33,6 +33,19 @@ depot.nix.readTree.drvTargets {
|
|||
|
||||
shell = pkgs.mkShell {
|
||||
name = "archeology-shell";
|
||||
packages = with pkgs; [ clickhouse rust-analyzer rustc rustfmt ];
|
||||
packages = with pkgs; [ awscli2 clickhoseLocalFixedAWS rust-analyzer rustc rustfmt ];
|
||||
|
||||
AWS_PROFILE = "sso";
|
||||
AWS_CONFIG_FILE = pkgs.writeText "aws-config" ''
|
||||
[sso-session nixos]
|
||||
sso_region = eu-north-1
|
||||
sso_start_url = https://nixos.awsapps.com/start
|
||||
sso_registration_scopes = sso:account:access
|
||||
|
||||
[profile "sso"]
|
||||
sso_session = nixos
|
||||
sso_account_id = 080433136561
|
||||
sso_role_name = archeologist
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue