Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
v1.08 1
Lab 05 Build your DB Server and interact with your DB using an
App
Task 2
Step 20
Click Add Subnet
Step 24
Click Continue
Task 3
Step 27
Click MySQL -> Next
Step 28
Select Production MySQL
Step 29
Click Next
Step 30b
For Multi-AZ deployment, select Create replica in different zone
Step 31
Click Next
Step 32b
Your dbgroup subnet group is already selected.
Step 32d
For VPC security groups, select Select existing VPC security groups and select your
DBSecurityGroup from the menu.
Step 32f
For Enhanced monitoring, select Disable enhanced monitoring
Step 34
Click View DB instance details
Step 35
Scroll down to the Connect section and wait until the endpoint is available, modifying, or
has transitioned from Not yet available to a URL. This may take up to 10 minutes.
Refresh the page by clicking on Instances on the navigation pane and clicking on
lab5db.
2
Step 36
Copy the Endpoint value. Your endpoint should look similar to the following example:
lab5db.cirucnffta.eu-west-1.rds.amazonaws.com
Task 4
Step 42a
For Endpoint, paste in the endpoint you copied previously.
3
Lab 09 - Using Auto-Scaling with AWS Lambda
Task 3
On the Services menu, click IAM.
In the navigation page, click Roles.
Click Create role.
Under AWS Service, click Lambda.
4
In the Policy type filter, type in AmazonEC2FullAccess and select AmazonEC2FullAccess.
5
Task 4
On the Services menu, click Lambda
Click Create a function.
On the Blueprints page, click Author from scratch.
For Name type EC2TagSnapLambdaFunction
For Role, select Choose an existing role.
For Existing role, select the EC2TagSnapLambdaRole role.
Click Create function
Ignore the warning that your user account is not authorized to perform kms:ListAliases
For Code entry type, select Edit code inline.
For Runtime, select Python 2.7
For Handler, type index.lambda_handler
Task 5
Return to the original lab instructions.
6
Lab 12 Implementing Serverless Architecture with AWS
Task 3
Step 24
Leave the remaining settings as their default and click Quick-Create Queue
Step 27
Leave the remaining settings as their default and click Quick-Create Queue
Task 4
On the Services menu, click Lambda.
Click Create a function
On the Create function page, click Author from scratch
On the Basic information page, for Name, type TransactionProcessor
For Role, make sure that Choose an existing role is selected.
For Existing role, click the role that contains the text S3LambdaDynamoDBRole. This gives
AWS Lambda the execution permissions required to access Amazon S3 and Amazon
DynamoDB.
Click Create function.
Note: Ignore any errors from IAM regarding ListAliases
On the Configuration tab of the TransactionProcessor page, change the Runtime to Python
2.7
For Handler, type index.lambda_handler
Delete all the code in the editor and paste in the code from step 46 of the original lab
instructions.
In the Basic settings pane, change the Timeout to 0min 20sec
Click the Triggers tab
Click +Add trigger
Click the empty square to the left of the Lambda icon.
In the drop-down list that appears, click S3
For Bucket, click the bucket that begins with qls and contains the text inputs3bucket
For Event type, click Object Created (All).
Make sure Enable trigger is checked.
Click Submit
7
At the top of the page, click Save.
Task 5
Click Functions near the top left corner of the page (you may need to expand a menu column).
Click Create a function
On the Create function page, click Author from scratch
On the Basic information page, for Name, type TransactionAggregatorNotifier
For Role, make sure that Choose an existing role is selected.
For Existing role, click the role that contains the text SNSLambdaDynamoDBRole. This
gives AWS Lambda the execution permissions required to access Amazon SNS and Amazon
DynamoDB.
Click Create function.
Note: Ignore any errors from IAM regarding ListAliases
On the Configuration tab of the TransactionAggregatorNotifier page, change the Runtime to
Python 2.7
For Handler, type index.lambda_handler
Delete all the code in the editor and paste in the code from step 68 of the original lab
instructions.
Edit line 9, replacing the text within single quotes with the ARN you copied earlier in the
exercise.
In the Basic settings pane, change the Timeout to 0min 20sec
Click the Triggers tab
Click +Add trigger
Click the empty square to the left of the Lambda icon.
In the drop-down list that appears, click DynamoDB
In the drop-down list for DynanmoDB table, select Transactions.
In the drop-down list for Starting position, select Trim horizon.
Check the checkbox for Enable trigger so that it is checked.
Click Submit
At the top of the page, click Save.
Task 6
Step 81
Click Upload