Skip to content

smparekh/fish-aws-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Usage

Copy or symlink aws_utils.fish to ~/.config/fish/functions/

codeartifact-login

config.fish:

set -x CA_PROFILE acme
set -x CA_DOMAIN acme
set -x CA_OWNER 12345678910
set -x CA_REGION us-east-1
set -x CA_REPOSITORY acmerepo
codeartifact-login

if you use awsume

awsume <PROFILE>
codeartifact-login

Function will set the following environment variables:

  • CODEARTIFACT_AUTH_TOKEN
  • POETRY_HTTP

ecr-login

ecr-login -p someprofile -u 12345678910.dkr.ecr.us-east-1.amazonaws.com
Logging in <SSO_URL>
# you can pass in -n to skip sso login and just awsume profile
Login succeeded, valid until 2024-10-02 17:58 EDT
[<someprofile>] Role credentials will expire 2024-10-02 15:56:21
Login Succeeded

About

Utils for AWS CodeArtifact/ECR for the fish shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages