06 2021 档案
摘要:AWS STS - Security Token Service Allows to grant limited and temporary access to AWS resource (up to 1 hour) AssumeRole: Assume roles within your acco
阅读全文
摘要:Install new dependencies In a folder with the serverless project run the following commands to add new dependencies: npm install --save aws-serverless
阅读全文
摘要:Overview How to architect our application for testability How to run our application locally Have multiple envs for our application Implement observab
阅读全文
摘要:Running DB instnace as a mulit-az deployment can further reduce the implace of a mainatenance event becasue Amazon RDS applies operating system update
阅读全文
摘要:removeEventListener removes an event listener added with addEventListener. However, there are a number of gotchas to watch out for in order to correct
阅读全文
摘要:ResultPath: "$.error": add error prop to the output: Input: {foo: 'bar'} ->. output: {foo: 'bar', error: {...}} Real-time offline sync
阅读全文
摘要:The gola of an Auto Scaling Group (ASG) is to: Scale out (add EC2 instances) to match an increased load Scale in (remove EC2 instances) to match a dec
阅读全文
摘要:Overview Object values are the content of body: Max Object Size 5TB (5000GB) If uploading more than 5GB, must use "multi-part upload" Metadata (list o
阅读全文
摘要:AWS CLI Credentials Provider Chain The CLI will look for credentials in this order Command line options --region, --output, and --profile Environment
阅读全文
摘要:"warm-up" for LB to boot faster 503 error for capacity or not registered target Support HTTP redirects to HTTPS at ALB level ALB works with ECS NLB ha
阅读全文
摘要:Ref: http://blogs.quovantis.com/browser-specific-hacks-for-frontend-developers/ Internet Explorer Css hacks :root .selector { Property: Value\9; color
阅读全文
摘要:Traffic splitting: Using ALB Blue/Green: Using Route 53 Delete some application after xxx days You cannot change the Load balancer once created Docker
阅读全文
摘要:https://resources.owllabs.com/hs-fs/hubfs/Zoom_BG2_Office-View-jpg.jpeg?width=873&name=Zoom_BG2_Office-View-jpg.jpeg
阅读全文
摘要:Origins S3 Bucket For distributing files and caching them at the edge Enhanced security with CloudFront Origin Access Identity (OAI: S3 only allow tra
阅读全文
摘要:What is CloudFormation Create: Create aws infrastructure based on a template/blueprint Update: update the aws infrastructure Delete: can any aws infra
阅读全文
摘要:Overview CodeCommit: storing code CodePipeline: automating our pipeline from code to ElasticBeanstalk CodeBuild: building and testing our code CodeDep
阅读全文
摘要:S3 File Size Single S3 Object can range in size from 0 bytes to 5TB Largest object that can be uploaded in a single PUT request is 5GB For Objects lar
阅读全文
摘要:EC2 Instance Pricing Options On-Demand Pay by the hour or the second depending on the type of instnace you run. Great for flexbility. (Run proprotype
阅读全文
摘要:EBS Volume Allow your instance to persist data, even after their termination Can only be mounted to one instance at a time Bound to a specific availab
阅读全文
摘要:The following table summarizes some of the customizations that can be made: User Pool FlowOperationDescription Custom Authentication Flow Define Auth
阅读全文
摘要:Lambda Execution Role (IAM Role) Lambda -> other serivce Grants the Lambda function permissions to AWS servcies / resources For example, when you want
阅读全文
摘要:VPC & Subnets VPC: private network to deploy your resources (regional resource) Subnets: partition your network inside your VPC (AZ resource) Public s
阅读全文
摘要:Lambda integration with ALB HTTP(s) Lambda function must be registered in a target group ALB Multi-Header Values If a client connect to ALB, we can co
阅读全文
摘要:1. Create a Lambda function, because we want to work with Application Load Balancer, we need to give a different response from Lambda Check: https://d
阅读全文
摘要:Overview Different from SQS, once data into Kinesis, it cannot be deleted. SQS will be deleted after processed Kinesis is regional Kinesis Producers D
阅读全文
摘要:SQS Decouple applications unlimited throughput, unlimited number of messages in queue 4 days retention of message, max 14 days 256KB size per message
阅读全文
摘要:CloudWatch CloudWath Metrics Default every 5 mins EC2 Detailed monitoring Get data every 1 mins Free Tier allow to have 10 details monitoring metrics
阅读全文
摘要:You can let AWS to create a SSL certificates for you and manage for you by using AWS Cetrficate Manager. Basicly it allows you to use HTTPS.
阅读全文
摘要:Features Serverless Monitoring Authentication Throttling Web application Firewal Custom domain names How API Gateway works When user come to your site
阅读全文
摘要:What does it means? For example, if we have setup a API Gateway, REST API, GET method point to a Lambda function with no proxy intergration which retu
阅读全文
摘要:1. First, create a Lambda function call `lambdav1` 2. Create three alias PROD, TEST, DEV For each alias, you can modify the response body code, so tha
阅读全文