Lab complete!
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool
The CloudFormation template that accompanies this lab requires the ability to create IAM Roles and AWS Lambda functions. If the account you are using does not have these capabilities, you will not be able to complete this lab.
Download the SampleLambdaAPIGWDeploy.yaml CloudFormation template to your machine.
For this lab, you will need to use us-east-2
Go to the AWS CloudFormation console at https://console.aws.amazon.com/cloudformation and click Create Stack > With new resources
Leave Prepare template setting as-is
Click Next
For Stack name use WALabDemoApp
Parameters
Look over the Parameters and their default values.
None of these parameters need to be changed, but are available if you wish to try different settings
LambdaStackName - Name of the Role Stack to reference outputs. This should be the same as the stack you deployed in the second step.
WAWorkloadType - Example list of Workload types that could be used in your environment. For this lab we only allow these values:
WAWorkloadDescription - Description for WA Workload field
WAWorkloadOwner - Who owns the WA workload
WAEnvironment - The environment in which your workload runs. You must select either PRODUCTION or PREPRODUCTION
APIGWName - Name for the API Gateway
apiGatewayStageName - The stage name for the API Gateway
APIGWHTTPMethod - The method type for the deployed API
SampleLambdaFunctionName - The name for the sample lambda function
Click Next
For Configure stack options we recommend configuring tags, which are key-value pairs, that can help you identify your stacks and the resources they create. For example, enter Owner in the left column which is the key, and your email address in the right column which is the value. We will not use additional permissions or advanced options so click Next. For more information, see Setting AWS CloudFormation Stack Options.
For Review
This will take you to the CloudFormation stack status page, showing the stack creation in progress.
When it shows status CREATE_COMPLETE, then you are finished with this step.
This template will take between 2-5 minutes to fully deploy.
Once deployed, you can click on the Outputs tab and find the various outputs from the Cloudformation. The WAWorkloadId is the WorkloadId from the Well-Architected Tool.
The link next to apiGatewayInvokeURL will show you the sample Lambda function responding via Amazon API Gateway. If you click on the link, it will show your IP address as reported by API Gateway headers as well as a link to the Well-Architected labs website.
Now that you have completed this lab, make sure to update your Well-Architected review if you have implemented these changes in your workload.
Click here to access the Well-Architected Tool