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
Copy file name to clipboardExpand all lines: doc_source/build-pipeline.md
+19-19Lines changed: 19 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,14 +12,14 @@
12
12
13
13
+ In **Select Role Type**, choose **AWS Service Roles**, and then choose **CloudFormation**\. Choose **Next: Permissions**\.
14
14
15
-
+ In **Attach permissions policies**, use the search bar to find and then choose **AWSLambdaExecute**\. Choose **Next: Review**\.
15
+
+ In **Attach permissions policies**, use the search bar to find and then choose **AWSLambdaExecute**\. Choose **Next: Review**\.
16
16
17
-
+ In **Role Name**, use a name that is unique within your AWS account \(for example, **cloudformation\-lambda\-execution\-role**\) and then choose **Create role**\.
17
+
+ In **Role Name**, use a name that is unique within your AWS account \(for example, **cloudformation\-lambda\-execution\-role**\) and then choose **Create role**\.
18
18
19
-
+ Open the role you just created and under the **Permissions** tab, choose **Add inline policy**\.
19
+
+ Open the role you just created and under the **Permissions** tab, choose **Add inline policy**\.
20
20
21
-
+ In **Create Policy** choose the **JSON** tab and enter the following:
22
-
**Note**
21
+
+ In **Create Policy** choose the **JSON** tab and enter the following:
22
+
**Note**
23
23
Make sure to replace the *region* and *id* placeholders with your region and account id\.
24
24
25
25
```
@@ -138,7 +138,7 @@ Make sure to replace the *region* and *id* placeholders with your region and acc
138
138
}
139
139
```
140
140
141
-
+ Choose **Validate Policy** and then choose **Apply Policy**\.
141
+
+ Choose **Validate Policy** and then choose **Apply Policy**\.
142
142
143
143
## Step 1: Set Up Your Repository<aname="setup-repository"></a>
144
144
@@ -151,7 +151,7 @@ To set up your repository, do the following:
151
151
```
152
152
var time = require('time');
153
153
exports.handler = (event, context, callback) => {
154
-
var currentTime = new time.Date();
154
+
var currentTime = new time.Date();
155
155
currentTime.setTimezone("America/Los_Angeles");
156
156
callback(null, {
157
157
statusCode: '200',
@@ -193,12 +193,12 @@ To set up your repository, do the following:
Note that you need to supply the `--s3-bucket` parameter value with the name of the your Amazon S3 bucket, similar to the step you would take if you were manually going to package the deployment package with SAM, as discussed in the [Packaging](serverless-deploy-wt.md#serverless-pack) step of the previous tutorial\.
@@ -231,8 +231,8 @@ Follow the steps following to create your AWS CodePipeline\.
231
231
232
232
1. In **Build specification** choose `Use the buildspec.yml in the source code root directory`
233
233
234
-
1. Choose **Save build project**\.
235
-
**Note**
234
+
1. Choose **Save build project**\.
235
+
**Note**
236
236
A service role for AWS CodeBuild will automatically be created on your behalf\.
237
237
238
238
Choose **Next step**\.
@@ -247,15 +247,15 @@ A service role for AWS CodeBuild will automatically be created on your behalf\.
247
247
248
248
1. In **Change set name:** enter **MyChangeSet**\.
249
249
250
-
1. In **Template file:** enter **samTemplate\.yaml**\.
250
+
1. In **Template file:** enter **outputSamTemplate\.yaml**\.
251
251
252
252
1. In **Capabilities:** choose **CAPABILITY\_IAM**\.
253
253
254
254
1. In **Role** select the AWS CloudFormation role you created at the beginning of this tutorial and then choose **Next step**\.
255
255
256
256
1. Choose **Create role**\. Choose **Next** and then choose **Allow\.** Choose **Next step**\.
257
257
258
-
1. Review your pipeline and then choose **Create pipeline**\.
258
+
1. Review your pipeline and then choose **Create pipeline**\.
259
259
260
260
## Step 3: Update the Generated Service Policy<a name="update-policy"></a>
261
261
@@ -293,7 +293,7 @@ Use the following steps to complete your Beta stage\.
293
293
294
294
1. Choose **Edit**\.
295
295
296
-
1. Choose the
296
+
1. Choose the
297
297
![\[Image NOT FOUND\]](http://docs.aws.amazon.com/lambda/latest/dg/images/edit-pencil.png)
298
298
299
299
icon next to **MyBetaStack**\.
@@ -302,7 +302,7 @@ Use the following steps to complete your Beta stage\.
302
302
303
303
1. In **Deployment provider\***, if not already selected, choose **AWS CloudFormation**\.
304
304
305
-
1. In **Action mode\* ** choose **Execute a change set**\. This is similar to the step you would take if you were manually going to deploy the package, as discussed in the [Deployment](serverless-deploy-wt.md#serv-deploy) step of the previous tutorial\. `CreateChangeSet` transforms the SAM template to the full AWS CloudFormation format and `deployChangeSet` deploys the AWS CloudFormation template\.
305
+
1. In **Action mode\* ** choose **Execute a change set**\. This is similar to the step you would take if you were manually going to deploy the package, as discussed in the [Deployment](serverless-deploy-wt.md#serv-deploy) step of the previous tutorial\. `CreateChangeSet` transforms the SAM template to the full AWS CloudFormation format and `deployChangeSet` deploys the AWS CloudFormation template\.
306
306
307
307
1. In **Stack name\* ** enter or choose **MyBetaStack**\.
308
308
@@ -314,12 +314,12 @@ Use the following steps to complete your Beta stage\.
314
314
315
315
1. Choose **Save and continue**\.
316
316
317
-
Your pipeline is ready\. Any git push to the branch you connected to this pipeline is going to trigger a deployment\. To test your pipeline and deploy your application for the first time, do one of the following:
317
+
Your pipeline is ready\. Any git push to the branch you connected to this pipeline is going to trigger a deployment\. To test your pipeline and deploy your application for the first time, do one of the following:
318
318
319
319
+ Perform a git push to the branch connected to your pipeline\.
320
320
321
-
+ Go the AWS CodePipeline console, choose the name of the pipeline you created and then choose **Release change**\.
321
+
+ Go the AWS CodePipeline console, choose the name of the pipeline you created and then choose **Release change**\.
322
322
323
323
## Next Step<a name="automating-deployment-next-step1"></a>
0 commit comments