Skip to content
Snippets Groups Projects
Select Git revision
  • b6522aad31ffc2e06aaee5d7dbc844612fd6b50a
  • master default
2 results

alias

Blame
  • alias 638 B
    [toplevel]
    
    whoami = sts get-caller-identity
    region = configure get region
    ecr-login = !$(aws ecr get-login --no-include-email)
    metadata-region = !python3 << EOF
        from urllib.request import urlopen
        import json
        response = urlopen('http://169.254.169.254/latest/dynamic/instance-identity/document')
        print(json.loads(response.read().decode('utf-8'))['region'])
        EOF
    du = s3 ls --recursive --human-readable --summarize
    enable_ena = ec2 modify-instance-attribute --ena-support --instance-id
    assume-role = !assume-role
    s3-etag = !f() { aws s3api head-object --bucket "$1" --key "$2" --query 'ETag' --output text | xargs; }; f