Skip to content

Commit 59f13f2

Browse files
Stuart RobinsonStuart Robinson
authored andcommitted
Fix SAM template naming issue in build-pipeline.md
1 parent e6e2f89 commit 59f13f2

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

doc_source/build-pipeline.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212

1313
+ In **Select Role Type**, choose **AWS Service Roles**, and then choose **CloudFormation**\. Choose **Next: Permissions**\.
1414

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**\.
1616

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**\.
1818

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**\.
2020

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**
2323
Make sure to replace the *region* and *id* placeholders with your region and account id\.
2424

2525
```
@@ -138,7 +138,7 @@ Make sure to replace the *region* and *id* placeholders with your region and acc
138138
}
139139
```
140140

141-
+ Choose **Validate Policy** and then choose **Apply Policy**\.
141+
+ Choose **Validate Policy** and then choose **Apply Policy**\.
142142

143143
## Step 1: Set Up Your Repository<a name="setup-repository"></a>
144144

@@ -151,7 +151,7 @@ To set up your repository, do the following:
151151
```
152152
var time = require('time');
153153
exports.handler = (event, context, callback) => {
154-
var currentTime = new time.Date();
154+
var currentTime = new time.Date();
155155
currentTime.setTimezone("America/Los_Angeles");
156156
callback(null, {
157157
statusCode: '200',
@@ -193,12 +193,12 @@ To set up your repository, do the following:
193193
install:
194194
commands:
195195
- npm install time
196-
- aws cloudformation package --template-file samTemplate.yaml --s3-bucket bucket-name
197-
--output-template-file NewSamTemplate.yaml
196+
- aws cloudformation package --template-file samTemplate.yaml --s3-bucket bucket-name
197+
--output-template-file outputSamTemplate.yaml
198198
artifacts:
199199
type: zip
200200
files:
201-
- samTemplate.yaml
201+
- outputSamTemplate.yaml
202202
```
203203
204204
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\.
231231
232232
1. In **Build specification** choose `Use the buildspec.yml in the source code root directory`
233233
234-
1. Choose **Save build project**\.
235-
**Note**
234+
1. Choose **Save build project**\.
235+
**Note**
236236
A service role for AWS CodeBuild will automatically be created on your behalf\.
237237
238238
Choose **Next step**\.
@@ -247,15 +247,15 @@ A service role for AWS CodeBuild will automatically be created on your behalf\.
247247
248248
1. In **Change set name:** enter **MyChangeSet**\.
249249
250-
1. In **Template file:** enter **samTemplate\.yaml**\.
250+
1. In **Template file:** enter **outputSamTemplate\.yaml**\.
251251
252252
1. In **Capabilities:** choose **CAPABILITY\_IAM**\.
253253
254254
1. In **Role** select the AWS CloudFormation role you created at the beginning of this tutorial and then choose **Next step**\.
255255
256256
1. Choose **Create role**\. Choose **Next** and then choose **Allow\.** Choose **Next step**\.
257257
258-
1. Review your pipeline and then choose **Create pipeline**\.
258+
1. Review your pipeline and then choose **Create pipeline**\.
259259
260260
## Step 3: Update the Generated Service Policy<a name="update-policy"></a>
261261
@@ -293,7 +293,7 @@ Use the following steps to complete your Beta stage\.
293293
294294
1. Choose **Edit**\.
295295
296-
1. Choose the
296+
1. Choose the
297297
![\[Image NOT FOUND\]](http://docs.aws.amazon.com/lambda/latest/dg/images/edit-pencil.png)
298298
299299
icon next to **MyBetaStack**\.
@@ -302,7 +302,7 @@ Use the following steps to complete your Beta stage\.
302302
303303
1. In **Deployment provider\***, if not already selected, choose **AWS CloudFormation**\.
304304
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\.
306306
307307
1. In **Stack name\* ** enter or choose **MyBetaStack**\.
308308
@@ -314,12 +314,12 @@ Use the following steps to complete your Beta stage\.
314314
315315
1. Choose **Save and continue**\.
316316
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:
318318
319319
+ Perform a git push to the branch connected to your pipeline\.
320320
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**\.
322322
323323
## Next Step<a name="automating-deployment-next-step1"></a>
324324
325-
[Gradual Code Deployment](automating-updates-to-serverless-apps.md)
325+
[Gradual Code Deployment](automating-updates-to-serverless-apps.md)

0 commit comments

Comments
 (0)