Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit a042a52

Browse files
author
Pirtle
committed
Merge branch 'master' of github.com:aws-samples/aws-serverless-workshops
2 parents 5a3622f + 109116f commit a042a52

File tree

56 files changed

+845
-1603
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+845
-1603
lines changed
66.9 KB
Loading
20.3 KB
Loading
66.9 KB
Loading
75.8 KB
Loading

DataProcessing/guide/site/data-lake.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h4 id="create-an-amazon-s3-bucket">1. Create an Amazon S3 bucket</h4>
3838
<li><p>Provide a globally unique name for your bucket such as <code>wildrydes-data-yourname</code>.</p></li>
3939
<li><p>Select the region you’ve been using for your bucket.</p>
4040
<p><img src="images/data-lake-create-bucket.png" /></kbd></p></li>
41-
<li><p>Click <strong>Next</strong> twice, and then click <strong>Create bucket</strong>.</p></li>
41+
<li><p>Click <strong>Next</strong> three times, and then click <strong>Create bucket</strong>.</p></li>
4242
</ol>
4343
<h4 id="create-an-amazon-kinesis-data-firehose-delivery-stream">2. Create an Amazon Kinesis Data Firehose delivery stream</h4>
4444
<p>Create an Amazon Kinesis Data Firehose delivery stream named <strong>wildrydes</strong> that is configured to source data from the <strong>wildrydes</strong> stream and deliver its contents in batches to the S3 bucket created in the previous section.</p>
@@ -88,7 +88,7 @@ <h4 id="create-an-amazon-athena-table">3. Create an Amazon Athena table</h4>
8888
<button class="btn btn-outline-primary copy">
8989
Copy to Clipboard
9090
</button></li>
91-
<li><p>Click <strong>Run Query</strong>.</p></li>
91+
<li><p>Click <strong>Run Query</strong>. You might have to run the query twice.</p></li>
9292
<li><p>Verify the table <strong>wildrydes</strong> was created by ensuring it has been added to the list of tables in the left navigation.</p></li>
9393
</ol>
9494
<h4 id="explore-the-batched-data-files">4. Explore the batched data files</h4>
172 KB
Loading

DataProcessing/guide/site/stream-processing.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h4 id="create-a-lambda-function-to-process-the-stream">3. Create a Lambda funct
8080
<p><img src="./images/stream-processing-lambda-basic-information.png" /></p></li>
8181
<li><p>Click <strong>Create function</strong>.</p></li>
8282
<li><p>Scroll down to the <strong>Function code</strong> section.</p></li>
83-
<li><p>Select <strong>Node.js 6.10</strong> from <strong>Runtime</strong>.</p></li>
83+
<li><p>Select <strong>Node.js 8.10</strong> from <strong>Runtime</strong>.</p></li>
8484
<li><p>Copy and paste the JavaScript code below into the code editor.</p>
8585
<div class="sourceCode" id="cb1"><pre class="sourceCode javascript"><code class="sourceCode javascript"><a class="sourceLine" id="cb1-1" data-line-number="1"><span class="st">&#39;use strict&#39;</span><span class="op">;</span></a>
8686
<a class="sourceLine" id="cb1-2" data-line-number="2"></a>
@@ -171,7 +171,7 @@ <h4 id="monitor-the-lambda-function">4. Monitor the Lambda function</h4>
171171
<ol type="1">
172172
<li><p>Run the producer to start emiting sensor data to the stream with a unique unicorn name.</p>
173173
<pre class="console"><code>./producer -name Rocinante</code></pre></li>
174-
<li><p>Click on the <strong>Monitoring</strong> tab and explore the metrics available to monitor the function. Click on <strong>Jump to Logs</strong> to explore the function’s log output.</p></li>
174+
<li><p>Click on the <strong>Monitoring</strong> tab and explore the metrics available to monitor the function. Click on <strong>View logs in CloudWatch</strong> to explore the function’s log output.</p></li>
175175
</ol>
176176
<button class="btn btn-outline-primary copy">
177177
Copy to Clipboard

DevOps/1_ServerlessApplicationModel/README.md

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Below is a code snippet from the SAM template to list Unicorns:
2525
Type: 'AWS::Serverless::Function'
2626
Properties:
2727
FunctionName: 'uni-api-list'
28-
Runtime: nodejs6.10
28+
Runtime: nodejs8.10
2929
CodeUri: app
3030
Handler: list.lambda_handler
3131
Description: List Unicorns
@@ -47,7 +47,7 @@ The **FunctionName** property defines a custom name for the Lambda function. If
4747
4848
#### Runtime
4949
50-
The example API shown above is implemented in **Node.js 6.10**. Additional runtimes are available for AWS Lambda. Please refer to the [Lambda Execution Environment and Available Libraries](http://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html) for the complete list.
50+
The example API shown above is implemented in **Node.js 8.10**. Additional runtimes are available for AWS Lambda. Please refer to the [Lambda Execution Environment and Available Libraries](http://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html) for the complete list.
5151
5252
#### CodeUri
5353
@@ -73,19 +73,43 @@ Each of the following sections provide an implementation overview and detailed,
7373

7474
If you're using the latest version of the Chrome, Firefox, or Safari web browsers the step-by-step instructions won't be visible until you expand the section.
7575

76+
### 1. Update CodeStarWorker-uni-api-CloudFormation IAM Role
7677

77-
### 1. Seed the `uni-api` CodeCommit Git repository
78+
1. In the AWS Management Console, click Services then select IAM under Security, Identity, & Compliance.
79+
80+
1. Click the **Search IAM** search box.
81+
82+
![Search IAM](images/cloudformation-role-1.png)
83+
84+
1. Type `CodeStarWorker-uni-api-CloudFormation` in the search box and select **CodeStarWorker-uni-api-CloudFormation** in the left navigation.
85+
86+
![Search CodeStarWorker-uni-api-CloudFormation](images/cloudformation-role-2.png)
87+
88+
1. In the IAM Role Summary page, click the **Attach policies** button.
89+
90+
![Attach policies](images/cloudformation-role-3.png)
91+
92+
1. Type `AWSLambdaFullAccess` in the filter text box, select the checkbox to the left of the **AWSLambdaFullAccess** IAM Role, and click **Attach policy**.
93+
94+
![Add AWSLambdaFullAccess policy](images/cloudformation-role-4.png)
95+
96+
1. Upon returning to the IAM Role Summary page, note that the **AWSLambdaFullAccess** policy has been added to the Role.
97+
98+
![Confirm policy addition](images/cloudformation-role-5.png)
99+
100+
101+
### 2. Seed the `uni-api` CodeCommit Git repository
78102

79103
1. Each module has corresponding source code used to seed the CodeCommit Git repository for the CodeStar project. To seed the CodeCommit Git repository, click on the **Launch Stack** button for your region below:
80104

81105
Region| Launch
82106
------|-----
83-
US East (N. Virginia) | [![Launch Module 1 in us-east-1](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/images/cloudformation-launch-stack-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/create/review?stackName=Seed-1-ServerlessApplicationModel&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-us-east-1/codecommit-template.yml&param_sourceUrl=https://s3.amazonaws.com/fsd-aws-wildrydes-us-east-1/uni-api-1-v3.zip&param_targetRepositoryName=uni-api&param_targetRepositoryRegion=us-east-1)
84-
US West (N. California) | [![Launch Module 1 in us-west-1](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/images/cloudformation-launch-stack-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/create/review?stackName=Seed-1-ServerlessApplicationModel&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-us-west-1/codecommit-template.yml&param_sourceUrl=https://s3-us-west-1.amazonaws.com/fsd-aws-wildrydes-us-west-1/uni-api-1-v3.zip&param_targetRepositoryName=uni-api&param_targetRepositoryRegion=us-west-1)
85-
US West (Oregon) | [![Launch Module 1 in us-west-2](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/images/cloudformation-launch-stack-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/create/review?stackName=Seed-1-ServerlessApplicationModel&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-us-west-2/codecommit-template.yml&param_sourceUrl=https://s3-us-west-2.amazonaws.com/fsd-aws-wildrydes-us-west-2/uni-api-1-v3.zip&param_targetRepositoryName=uni-api&param_targetRepositoryRegion=us-west-2)
86-
EU (Ireland) | [![Launch Module 1 in eu-west-1](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/images/cloudformation-launch-stack-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/create/review?stackName=Seed-1-ServerlessApplicationModel&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-eu-west-1/codecommit-template.yml&param_sourceUrl=https://s3-eu-west-1.amazonaws.com/fsd-aws-wildrydes-eu-west-1/uni-api-1-v3.zip&param_targetRepositoryName=uni-api&param_targetRepositoryRegion=eu-west-1)
87-
EU (Frankfurt) | [![Launch Module 1 in eu-central-1](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/images/cloudformation-launch-stack-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/create/review?stackName=Seed-1-ServerlessApplicationModel&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-eu-central-1/codecommit-template.yml&param_sourceUrl=https://s3-eu-central-1.amazonaws.com/fsd-aws-wildrydes-eu-central-1/uni-api-1-v3.zip&param_targetRepositoryName=uni-api&param_targetRepositoryRegion=eu-central-1)
88-
Asia Pacific (Sydney) | [![Launch Module 1 in ap-southeast-2](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/images/cloudformation-launch-stack-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/create/review?stackName=Seed-1-ServerlessApplicationModel&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-ap-southeast-2/codecommit-template.yml&param_sourceUrl=https://s3-ap-southeast-2.amazonaws.com/fsd-aws-wildrydes-ap-southeast-2/uni-api-1-v3.zip&param_targetRepositoryName=uni-api&param_targetRepositoryRegion=ap-southeast-2)
107+
US East (N. Virginia) | [![Launch Module 1 in us-east-1](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/images/cloudformation-launch-stack-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/create/review?stackName=Seed-1-ServerlessApplicationModel&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-us-east-1/codecommit-template.yml&param_sourceUrl=https://s3.amazonaws.com/fsd-aws-wildrydes-us-east-1/uni-api-1-v4.zip&param_targetRepositoryName=uni-api&param_targetRepositoryRegion=us-east-1)
108+
US West (N. California) | [![Launch Module 1 in us-west-1](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/images/cloudformation-launch-stack-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/create/review?stackName=Seed-1-ServerlessApplicationModel&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-us-west-1/codecommit-template.yml&param_sourceUrl=https://s3-us-west-1.amazonaws.com/fsd-aws-wildrydes-us-west-1/uni-api-1-v4.zip&param_targetRepositoryName=uni-api&param_targetRepositoryRegion=us-west-1)
109+
US West (Oregon) | [![Launch Module 1 in us-west-2](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/images/cloudformation-launch-stack-button.png)](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/create/review?stackName=Seed-1-ServerlessApplicationModel&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-us-west-2/codecommit-template.yml&param_sourceUrl=https://s3-us-west-2.amazonaws.com/fsd-aws-wildrydes-us-west-2/uni-api-1-v4.zip&param_targetRepositoryName=uni-api&param_targetRepositoryRegion=us-west-2)
110+
EU (Ireland) | [![Launch Module 1 in eu-west-1](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/images/cloudformation-launch-stack-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/create/review?stackName=Seed-1-ServerlessApplicationModel&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-eu-west-1/codecommit-template.yml&param_sourceUrl=https://s3-eu-west-1.amazonaws.com/fsd-aws-wildrydes-eu-west-1/uni-api-1-v4.zip&param_targetRepositoryName=uni-api&param_targetRepositoryRegion=eu-west-1)
111+
EU (Frankfurt) | [![Launch Module 1 in eu-central-1](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/images/cloudformation-launch-stack-button.png)](https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/create/review?stackName=Seed-1-ServerlessApplicationModel&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-eu-central-1/codecommit-template.yml&param_sourceUrl=https://s3-eu-central-1.amazonaws.com/fsd-aws-wildrydes-eu-central-1/uni-api-1-v4.zip&param_targetRepositoryName=uni-api&param_targetRepositoryRegion=eu-central-1)
112+
Asia Pacific (Sydney) | [![Launch Module 1 in ap-southeast-2](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/images/cloudformation-launch-stack-button.png)](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/create/review?stackName=Seed-1-ServerlessApplicationModel&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-ap-southeast-2/codecommit-template.yml&param_sourceUrl=https://s3-ap-southeast-2.amazonaws.com/fsd-aws-wildrydes-ap-southeast-2/uni-api-1-v4.zip&param_targetRepositoryName=uni-api&param_targetRepositoryRegion=ap-southeast-2)
89113

90114

91115
1. The CloudFormation template has been prepopulated with the necessary fields for this module. No changes are necessary
@@ -171,7 +195,7 @@ If you're unable to install SAM CLI on your workstation, you may find it easier
171195

172196

173197
1. Once the CloudFormation stack creation has completed, find the EC2 instance public DNS name by selecting the checkbox to the left of the **DeveloperInstance** Stack, and clicking the **Outputs** tab below the list of Stacks. Find the output key labeled `PublicDnsName` and use the corresponding value in order to access the EC2 instance.
174-
198+
175199
1. Use SSH client to connect to the instance. If you are using Windows, use a client such as Putty or Bitvise (you can find instructions for connecting from Windows using Putty here: [Connecting to Your Linux Instance from Windows Using PuTTY](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html))
176200

177201
1. The Git repository has been cloned to the home directory on launch, `/home/ec2-user/uni-api`.
67.6 KB
Loading
89 KB
Loading

0 commit comments

Comments
 (0)