Skip to content

Instantly share code, notes, and snippets.

@lcenchew
Last active January 12, 2024 02:16
Show Gist options
  • Save lcenchew/082c6a73c2e83634128527370ad32b9f to your computer and use it in GitHub Desktop.
Save lcenchew/082c6a73c2e83634128527370ad32b9f to your computer and use it in GitHub Desktop.
Notes - AWS #notes

AWS

Using CLI

  • Windows

    • winget install -e --id Amazon.AWSCLI
  • macOS

    • brew install awscli
    • example folder /opt/homebrew/Cellar/awscli/2.13.16/share/awscli/examples
  • General

    • aws configure sso to use SSO
    • create a profile and use all command with --profile

Using VS Code

  • install AWS ToolKit

Using in Google CloudShell

curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
./aws/install -i ~/.local/aws-cli -b ~/.local/bin
  • check .profile if the path is included
export PATH="~/.local/bin:$PATH"
  • enable command completion

CDK

  • Windows

    • install Node.js LTS
    • install CDK toolkit
  • macOS

    • brew install
npm install -g aws-cdk
  • bootstrap
cdk bootstrap aws://ACCOUNT-NUMBER/REGION --profile PROFILE

Well Architected

  • Security
  • Operation
  • Reliability
  • Performance
  • Cost
    • Cloud Financial Management
      • See
        • Control Tower, Organizations
        • Cost allocations tags, Tag policies
        • Resource Groups, Cost Categories
        • Cost Explorer, Cost and Usage Report
        • RIs and SP
      • Save
      • Plan
      • Run
        • Billing and Cost Management Console
        • Identity and Access Management
        • Service Control Policies (SCP)
        • Service Catalog
        • Cost Anomaly Detection
        • Budgets
  • Sustainability

Learn

CodeCommit

Follow this to setup git to use codecommit repo.

May need to install wth admin permission

pip3 install git-remote-codecommit
aws configure sso
git clone codecommit://CodeCommitProfile@MyDemoRepo my-demo-repo

Setup

Using IAM Identity Centre

  • Attributes for access control
  • Set Identity source, access portal URL
  • Create User
  • Create Group
  • Create Permission set
  • Assign user/group to Organization account

Resource Explorer


🔼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment