Which reason do you concern AWS ?
Quote
The big reason why i choose AWS about unique idea of maintainer and developer from AWS company put inside their services. They give me other perspective to create, control and manage service, and that is creating the difference between
aws
andazure
. Especially, this cloud have some strange service and practice with it help me have more knowledge, and that why I concern to chooseAWS
and one more thing huge community stand behind will help you resolve any problems, for sure.If I concern about
aws
andazure
, I will choose one of them depend on what I need to do. About trying to operate service like web dynamic - static, DB and container app, I will chooseazure
, and in another task, if I want to practice with secrets management, simple storage as S3, Queue message, β¦ I will chooseaws
for alternative
You can figure what you need to do for start with aws
via some website and article
- AWS Documentation
- AWS Training
- AWS Architecture Center
- AWS CLI - Installation Guide
- AWS CLI - Command Guide
- AWS CLI - Configure the AWS CLI
- AWS Create Account Guide
- AWS Price Calculator
- AWS Architecture Blog
- AWS Blog
- AWS General Reference
- AWS IAM Actions - Generator
You can manage aws
as organization via the tree and sub-organization inside root account
So enjoy what you need, inside the article will share about how you CLI, cheatsheet, collection of useful article around aws
. Externally, In AWS
, I will share about some others topic, such as Services, Certificates and more about Best Practice
Awesome AWS Repositories
Repository
- awesome-aws - A curated list of awesome Amazon Web Services (AWS) libraries, open source repos, guides, blogs, and other resources.
- my-arsenal-of-aws-security-tools: List of open source tools for AWS security: defensive, offensive, auditing, DFIR, etc.
- all_aws_managed_policies: A list of all AWS managed policies and theyβre policy documents as well as a short script to generate the list
Organization
- Github - Amazon Web Services - AWS Opensource Community
- Github - AWS Samples - AWS Samples Community
Blogs and Articles
Blogs
- Medium - Chris St. John
- Medium - AWS in Plain English: New AWS, Cloud, and DevOps content every day.
- Medium - AWStip: Community of passionate AWS builders.
Articles
- Medium - ECS (Fargate) with ALB Deployment Using Terraform β Part 3
- Medium - Creating SSL Certificates using AWS Certificate Manager (ACM)
- Medium - Configuring Production-Ready EKS Clusters with Terraform and GitHub Actions
- AWS Docs - Grant IAM users access to Kubernetes with EKS access entries
- CloudZero - AWS NAT Gateway Pricing: Simple Strategies To Limit Costs
- PacketFabric - A Deep Dive into NAT Gateway Alternatives
- Medium - 18 AWS Lambda Microstacks
- Medium - 14 AWS Security Microstacks
- Medium - 7 Effective Ways to Automate Cloud Infrastructure Auditing with AWS CloudTrail and AWS Config
Issues
- AWS re:Post - Getting an Access Denied error message when I upload files to my Amazon S3 bucket
- AWS - Troubleshoot access denied (403 Forbidden) errors in Amazon S3
AWS CLI
Question
You need to export some configuration before you can use
awscli
, such as
- AWS_ACCESS_KEY_ID (Obligatory)
- AWS_SECRET_ACCESS_KEY (Obligatory)
- AWS_SESSION_TOKEN (If you have)
S3
Warning
With
s3
some situation i set it upΒ--endpoint-url
Β it mean i useΒlocalstack
Β for virtualizationΒaws
Β cloud on my machine, so keep mind and skip the flag if you want to applied to youraws
cloud
Create the bucket
List the object in the bucket
Upload the object from directory to bucket, with single file or multiple files
Read contents inside bucket
Delete a huge bucket with versioning enable
Discovery more about issue at StackOverFlow - How do I delete a versioned bucket in AWS S3 using the CLI?
STS
Get caller identity to detect whoami
or role
Assume role with web-identity
Assume role with one-command
Documentation: StackOverFlow - AWS sts assume role in one command
ECS
List task inside ECS Cluster
Execution command
Warning
In this part you need to confirm two thing to install inside cluster and your machine
In your machine, need to install session-manager-plugin
. Use curl
command to download
In your task, you need enable feature execute-command if not
And now if you confirm two thing about you can use execution to inject something inside container
ECR
Get login password of your ECR
Login to your ECR
EKS
Get token of cluster
Create kubeconfig file automatically
SQS
Retrieve message from queue
SNS
Subscribe webhook
with SNS
Use can use two platform to generate endpoint
- Beeceptor : API Mocking
- Webhook.site : Generates free, unique URLs and e-mail addresses and lets you see everything thatβs sent there instantly. (Usage: Steal cookies, bypass authorized, β¦)
Cognito-identity
Get Identity
Get Credential
Get Open ID Token
Note
Use when you receive
open-id
token to retrieve the credential to access AWS
Configure
Set credential for profile
And easily you can temporarily switch profiles with export to environment variable
Cheatsheet and Script
S3
Retrieve file data from S3
Abstract
This script will be helped you for retrieving the file from your S3 bucket
Upload file to S3
Abstract
This script will help you upload a new file to S3 bucket