macos-setup
🐱 Source ☕️ Java SampleGo Sample Angular Sample
  • Mac Setup
  • Getting Started
    • Xcode
    • Homebrew
    • System Preferences
    • Essentials
    • Dotfiles
  • Applications
    • Ghostty
    • Sublime-text
    • JetBrains
    • VSCode
    • Xcode
    • Marta
    • Benthos
    • OrbStack
    • Traefik
    • n8n
  • Platforms
    • Java
    • Node
      • Bub
      • NPM
      • PNPM
      • Turborepo
    • GoLang
    • Rust
    • Python
      • Agno AI
  • DevOps
    • Development Workflow
      • Git
        • GitHub CLL
      • GitOps
      • Documentation
      • mkcert
      • YubiKey
    • Monorepo
    • dnsmasq
    • Docker
    • Skaffold
    • Kubernetes
    • Helm
    • Kustomize
    • kustomizer
    • Terraform
    • Security
    • Cloud
      • gcloud
      • azure
      • aws
  • Tips
    • Git
    • MacOS
Powered by GitBook
On this page
  • Install
  • Usage
  • eksctl
  • Reference

Was this helpful?

Edit on GitHub
  1. DevOps
  2. Cloud

aws

Install

brew install awscli
aws configure
export AWS_ACCESS_KEY_ID=FIXME
export AWS_SECRET_ACCESS_KEY=FIXME
export AWS_DEFAULT_REGION=us-east-1

What you will be asked in the command prompt:

aws configure --profile hyniva
AWS Access Key ID [None]: FIXME
AWS Secret Access Key [None]: FIXME
Default region name [None]: us-east-1
Default output format [None]: json

Usage

aws configure region (region-name)
# List API Gateway keys
aws apigateway get-rest-apis | jq -r ‘.items[ ] | .id+” “+.name’
# List API Gateway domain names
aws apigateway get-domain-names | jq -r ‘.items[ ] | .domainName+” “+.regionalDomainName’
# List resources for API Gateway
aws apigateway get-resources --rest-api-id ee86b4cde | jq -r ‘.items[ ] | .id+” “+.path’
aws ec2 describe-instances | jq -r '.Reservations[].Instances[]|.InstanceId+" "+.InstanceType+" "+(.Tags[] | select(.Key == "Name").Value)'
# Create a cluster
aws eks create-cluster --name (cluster name)
# Delete a cluster
aws eks delete-cluster --name (cluster name)
# List descriptive information about a cluster
aws eks describe-cluster --name (cluster name)
# List clusters in your default region
aws eks list-clusters
# Tag a resource
aws eks tag-resource --resource-arn (resource_ARN) --tags (tags)
# List DB clusters
aws rds describe-db-clusters | jq -r ‘.DBClusters[ ] | .DBClusterIdentifier+” “+.Endpoint’
# List DB instances
aws rds describe-db-instances | jq -r ‘.DBInstances[ ] | .DBInstanceIdentifier+” “+.DBInstanceClass+” “+.Endpoint.Address’
aws s3 ls

eksctl

brew tap weaveworks/tap
brew install weaveworks/tap/eksctl

Reference

PreviousazureNextTips

Last updated 3 months ago

Was this helpful?

Set up to use

AWS CLI Cheatsheet
Amazon EKS