Set 2
Set 2
A listener checks for connection requests from clients, using the protocol and port that you
configure. The rules that you define for a listener determine how the load balancer routes requests
to its registered targets. Each rule consists of a priority, one or more actions, and one or more
conditions.
Amazon Elastic Container Service (Amazon ECS), you can use dynamic port mapping to support
multiple tasks from a single service on the same container instance. Amazon ECS manages updates
to your services by automatically registering and deregistering containers with your target group
using the instance ID and port for each container.
---------------------------\
AWS CloudFormation template is a JSON- or YAML-formatted text file that describes your
AWS infrastructure. Templates include several major sections. The "Resources" section is the
only required section. The optional "Transform" section specifies one or more macros that
AWS CloudFormation uses to process your template.
------------------------\
VPC Flow Logs - VPC Flow Logs is a feature that enables you to capture information about
the IP traffic going to and from network interfaces in your VPC. Flow log data can be
published to Amazon CloudWatch Logs or Amazon S3. After you've created a flow log, you
can retrieve and view its data in the chosen destination.
You can create a flow log for a VPC, a subnet, or a network interface. If you create a flow log
for a subnet or VPC, each network interface in that subnet or VPC is monitored.
------------------\
Q9. A company wants to automate its order fulfillment and inventory tracking workflow.
Starting from order creation to updating inventory to shipment, the entire process has to be
tracked, managed and updated automatically.
A Task state ("Type": "Task") represents a single unit of work performed by a state machine.
All work in your state machine is done by tasks. A task performs work by using an activity or
an AWS Lambda function, or by passing parameters to the API actions of other services.
"HelloWorld": {
"Type": "Task",
"Resource": "arn:aws:lambda:us-east-
1:123456789012:function:HelloFunction",
"Next": "AfterHelloWorldState",
"Comment": "Run the HelloWorld Lambda function"
}
//Wait
"wait_until" : {
"Type": "Wait",
"Timestamp": "2016-03-14T01:59:00Z",
"Next": "NextState"
}
A Wait state ("Type": "Wait") delays the state machine from continuing for a
specified time.
"No-op": {
"Type": "Task",
"Result": {
"x-datum": 0.381018,
"y-datum": 622.2269926397355
},
"ResultPath": "$.coords",
"Next": "End"
}
Resource field is a required parameter for Task state. This definition is not of a Task
but of type Pass.
"FailState": {
"Type": "Fail",
"Cause": "Invalid response.",
"Error": "ErrorA"
}
A Fail state ("Type": "Fail") stops the execution of the state machine and marks it as a
failure unless it is caught by a Catch block. Because Fail states always exit the state
machine, they have no Next field and don't require an End field.
-------------------\
The maximum ratio of provisioned IOPS to requested volume size (in GiB) is 50:1. So, for a
200 GiB volume size, max IOPS possible is 200*50 = 10000 IOPS.
--------------------\
You must create the Lambda function from the same account as the container registry
in Amazon ECR
You can test the containers locally using the Lambda Runtime Interface Emulator.
You can deploy Lambda function as container image with the maximum size of 10GB.
-----------------------------\
--------------------------------\
Lambda Authorizer - Lambda authorizers are Lambda functions that control access to
REST API methods using bearer token authentication—as well as information described by
headers, paths, query strings, stage variables, or context variables request parameters.
Lambda authorizers are used to control who can invoke REST API methods.
AWS Security Token Service (STS) - AWS Security Token Service (AWS STS) is a web
service that enables you to request temporary, limited-privilege credentials for AWS Identity
and Access Management (IAM) users or for users that you authenticate (federated users).
However, it is not supported by API Gateway.
------------------------------------\