Posts

AWS Root Account MFA setup

Image
 AWS root account MFA setup 1. Login your aws root account  2. Select the My Security Credentials 3. Select th e  Multi-factor authentication and click Activate MFA 4. Choose Any MFA device, for now I will choose Virtual MFA device 5. Scan the QR code with authentication app (google,authy) and fill the 2 MFA code. 6. After all steup logout again and login back. Thank you! 😊 

Setup the ssh connection with github

Image
Generate the ssh key  $ ssh-keygen -t ed25519 -C "your_email@example.com"   Save the ssh key   > Enter a file in which to save the key (/Users/you/.ssh/id_ed25519): [Press enter]   Type a secure passphrase   > Enter passphrase (empty for no passphrase): [Type a passphrase] > Enter same passphrase again: [Type passphrase again]   Add ssh key to ssh-agent   $ eval "$(ssh-agent -s)"   $ open ~/.ssh/config if not exist, create it.   $ vi ~/.ssh/config   Host * AddKeysToAgent yes UseKeychain yes IdentityFile ~/.ssh/id_ed25519    Note: If you see an error like this /Users/USER/.ssh/config: line 16: Bad configuration option: usekeychain    add IgnoreUnknown UseKeychain in .ssh/config     Copy the SSH public key to your clipboard. more ~/.ssh/id_ed25519.pub   Select an copy your pub key and place in your github account   In the user settings sidebar, click SSH and GPG keys.  Click New SSH key...

AWS named profile with Access Key

Image
Named profile    A named profile is a collection of settings and credentials that you can apply to a AWS CLI command. Requirement  aws users  aws cli    Creating the User access key Access to your aws console account and open to iam ( https://console.aws.amazon.com/iam/ )   Choose users    Choose security credential tap      In the Access keys section, choose Create access key .    To download the key pair, choose Download .csv file .   Creating AWS named profile    $ aws configure AWS Access Key ID [None]: AKIAIOSFODNN7EXAMPLE (Your key id) AWS Secret Access Key [None]: wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY (Your Secret Key) Default region name [None]: ap-southeast-1   This will have created the ~/.aws/credentials file and ~/.aws/config populated it with the credentials settings.   $ ls -la ~/.aws/ total 16 drwxr-xr-x       4...