You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: DevOps/1_ServerlessApplicationModel/README.md
+34-10Lines changed: 34 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Below is a code snippet from the SAM template to list Unicorns:
25
25
Type: 'AWS::Serverless::Function'
26
26
Properties:
27
27
FunctionName: 'uni-api-list'
28
-
Runtime: nodejs6.10
28
+
Runtime: nodejs8.10
29
29
CodeUri: app
30
30
Handler: list.lambda_handler
31
31
Description: List Unicorns
@@ -47,7 +47,7 @@ The **FunctionName** property defines a custom name for the Lambda function. If
47
47
48
48
#### Runtime
49
49
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.
51
51
52
52
#### CodeUri
53
53
@@ -73,19 +73,43 @@ Each of the following sections provide an implementation overview and detailed,
73
73
74
74
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.
75
75
76
+
### 1. Update CodeStarWorker-uni-api-CloudFormation IAM Role
76
77
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
+

83
+
84
+
1. Type `CodeStarWorker-uni-api-CloudFormation` in the search box and select **CodeStarWorker-uni-api-CloudFormation** in the left navigation.
1. Type `AWSLambdaFullAccess` in the filter text box, select the checkbox to the left of the **AWSLambdaFullAccess** IAM Role, and click **Attach policy**.
### 2. Seed the `uni-api` CodeCommit Git repository
78
102
79
103
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:
80
104
81
105
Region| Launch
82
106
------|-----
83
-
US East (N. Virginia) | [](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¶m_sourceUrl=https://s3.amazonaws.com/fsd-aws-wildrydes-us-east-1/uni-api-1-v3.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=us-east-1)
84
-
US West (N. California) | [](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¶m_sourceUrl=https://s3-us-west-1.amazonaws.com/fsd-aws-wildrydes-us-west-1/uni-api-1-v3.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=us-west-1)
85
-
US West (Oregon) | [](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¶m_sourceUrl=https://s3-us-west-2.amazonaws.com/fsd-aws-wildrydes-us-west-2/uni-api-1-v3.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=us-west-2)
86
-
EU (Ireland) | [](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¶m_sourceUrl=https://s3-eu-west-1.amazonaws.com/fsd-aws-wildrydes-eu-west-1/uni-api-1-v3.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=eu-west-1)
87
-
EU (Frankfurt) | [](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¶m_sourceUrl=https://s3-eu-central-1.amazonaws.com/fsd-aws-wildrydes-eu-central-1/uni-api-1-v3.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=eu-central-1)
88
-
Asia Pacific (Sydney) | [](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¶m_sourceUrl=https://s3-ap-southeast-2.amazonaws.com/fsd-aws-wildrydes-ap-southeast-2/uni-api-1-v3.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=ap-southeast-2)
107
+
US East (N. Virginia) | [](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¶m_sourceUrl=https://s3.amazonaws.com/fsd-aws-wildrydes-us-east-1/uni-api-1-v4.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=us-east-1)
108
+
US West (N. California) | [](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¶m_sourceUrl=https://s3-us-west-1.amazonaws.com/fsd-aws-wildrydes-us-west-1/uni-api-1-v4.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=us-west-1)
109
+
US West (Oregon) | [](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¶m_sourceUrl=https://s3-us-west-2.amazonaws.com/fsd-aws-wildrydes-us-west-2/uni-api-1-v4.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=us-west-2)
110
+
EU (Ireland) | [](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¶m_sourceUrl=https://s3-eu-west-1.amazonaws.com/fsd-aws-wildrydes-eu-west-1/uni-api-1-v4.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=eu-west-1)
111
+
EU (Frankfurt) | [](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¶m_sourceUrl=https://s3-eu-central-1.amazonaws.com/fsd-aws-wildrydes-eu-central-1/uni-api-1-v4.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=eu-central-1)
112
+
Asia Pacific (Sydney) | [](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¶m_sourceUrl=https://s3-ap-southeast-2.amazonaws.com/fsd-aws-wildrydes-ap-southeast-2/uni-api-1-v4.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=ap-southeast-2)
89
113
90
114
91
115
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
171
195
172
196
173
197
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
+
175
199
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))
176
200
177
201
1. The Git repository has been cloned to the home directory on launch, `/home/ec2-user/uni-api`.
Copy file name to clipboardExpand all lines: DevOps/2_ContinuousDeliveryPipeline/README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,12 +45,12 @@ If you're using the latest version of the Chrome, Firefox, or Safari web browser
45
45
46
46
Region| Launch
47
47
------|-----
48
-
US East (N. Virginia) | [](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/create/review?stackName=Seed-2-ContinuousDelivery&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-us-east-1/codecommit-template.yml¶m_sourceUrl=https://s3.amazonaws.com/fsd-aws-wildrydes-us-east-1/uni-api-2-v3.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=us-east-1)
49
-
US West (N. California) | [](https://console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/create/review?stackName=Seed-2-ContinuousDelivery&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-us-west-1/codecommit-template.yml¶m_sourceUrl=https://s3-us-west-1.amazonaws.com/fsd-aws-wildrydes-us-west-1/uni-api-2-v3.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=us-west-1)
50
-
US West (Oregon) | [](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/create/review?stackName=Seed-2-ContinuousDelivery&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-us-west-2/codecommit-template.yml¶m_sourceUrl=https://s3-us-west-2.amazonaws.com/fsd-aws-wildrydes-us-west-2/uni-api-2-v3.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=us-west-2)
51
-
EU (Ireland) | [](https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/create/review?stackName=Seed-2-ContinuousDelivery&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-eu-west-1/codecommit-template.yml¶m_sourceUrl=https://s3-eu-west-1.amazonaws.com/fsd-aws-wildrydes-eu-west-1/uni-api-2-v3.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=eu-west-1)
52
-
EU (Frankfurt) | [](https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/create/review?stackName=Seed-2-ContinuousDelivery&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-eu-central-1/codecommit-template.yml¶m_sourceUrl=https://s3-eu-central-1.amazonaws.com/fsd-aws-wildrydes-eu-central-1/uni-api-2-v3.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=eu-central-1)
53
-
Asia Pacific (Sydney) | [](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/create/review?stackName=Seed-2-ContinuousDelivery&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-ap-southeast-2/codecommit-template.yml¶m_sourceUrl=https://s3-ap-southeast-2.amazonaws.com/fsd-aws-wildrydes-ap-southeast-2/uni-api-2-v3.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=ap-southeast-2)
48
+
US East (N. Virginia) | [](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/create/review?stackName=Seed-2-ContinuousDelivery&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-us-east-1/codecommit-template.yml¶m_sourceUrl=https://s3.amazonaws.com/fsd-aws-wildrydes-us-east-1/uni-api-2-v4.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=us-east-1)
49
+
US West (N. California) | [](https://console.aws.amazon.com/cloudformation/home?region=us-west-1#/stacks/create/review?stackName=Seed-2-ContinuousDelivery&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-us-west-1/codecommit-template.yml¶m_sourceUrl=https://s3-us-west-1.amazonaws.com/fsd-aws-wildrydes-us-west-1/uni-api-2-v4.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=us-west-1)
50
+
US West (Oregon) | [](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/create/review?stackName=Seed-2-ContinuousDelivery&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-us-west-2/codecommit-template.yml¶m_sourceUrl=https://s3-us-west-2.amazonaws.com/fsd-aws-wildrydes-us-west-2/uni-api-2-v4.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=us-west-2)
51
+
EU (Ireland) | [](https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/create/review?stackName=Seed-2-ContinuousDelivery&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-eu-west-1/codecommit-template.yml¶m_sourceUrl=https://s3-eu-west-1.amazonaws.com/fsd-aws-wildrydes-eu-west-1/uni-api-2-v4.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=eu-west-1)
52
+
EU (Frankfurt) | [](https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/create/review?stackName=Seed-2-ContinuousDelivery&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-eu-central-1/codecommit-template.yml¶m_sourceUrl=https://s3-eu-central-1.amazonaws.com/fsd-aws-wildrydes-eu-central-1/uni-api-2-v4.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=eu-central-1)
53
+
Asia Pacific (Sydney) | [](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/create/review?stackName=Seed-2-ContinuousDelivery&templateURL=https://s3.amazonaws.com/fsd-aws-wildrydes-ap-southeast-2/codecommit-template.yml¶m_sourceUrl=https://s3-ap-southeast-2.amazonaws.com/fsd-aws-wildrydes-ap-southeast-2/uni-api-2-v4.zip¶m_targetRepositoryName=uni-api¶m_targetRepositoryRegion=ap-southeast-2)
54
54
55
55
56
56
1. The CloudFormation template has been prepopulated with the necessary fields for this module. No changes are necessary
@@ -99,7 +99,7 @@ Using a text editor, open the `template.yml` file and append a new **AWS::Server
99
99
100
100
1. **FunctionName** is `uni-api-update`
101
101
102
-
1. **Runtime** is `nodejs6.10`
102
+
1. **Runtime** is `nodejs8.10`
103
103
104
104
1. **CodeUri** is `app`
105
105
@@ -125,7 +125,7 @@ Using a text editor, open the `template.yml` file and append a new **AWS::Server
0 commit comments