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/3_XRay/README.md
+25-26Lines changed: 25 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,33 +64,32 @@ As you can see, the basic X-Ray integration into Lambda requires only two change
64
64
65
65
## Environment Setup
66
66
67
-
In order to tacke[Problem 1: Error Discovery Using X-Ray](#problem-1-error-discovery-using-x-ray) and [Problem 2: Performance Discovery Using-X-Ray](#problem-2-performance-discovery-using-x-ray), you must make a few IAM Policy changes and clone a seed the project repository using the steps below.
67
+
In order to tackle[Problem 1: Error Discovery Using X-Ray](#problem-1-error-discovery-using-x-ray) and [Problem 2: Performance Discovery Using-X-Ray](#problem-2-performance-discovery-using-x-ray), you must clone a seed the project repository using the steps below.
68
68
69
+
**Note:** For the Lambda Function to access the X-Ray Service, the **LambdaExecutionPolicy** must include the **arn:aws:iam::aws:policy/AWSXRayDaemonWriteAccess** Managed Policy. For simplification, this policy has been added to the **template.yml** file, which will now look like the following:
69
70
70
-
71
-
### 1. Add the AWSXrayWriteOnlyAccess Policy to the `CodeStarWorker-uni-api-Lambda` Role
72
-
73
-
1. In the AWS Management Console choose **Services** then select **IAM** under Security, Identity & Compliance.
74
-
75
-
1. Select Role in the left navigation, type `CodeStarWorker-uni-api-Lambda` in the filter text box, and click the Role name link in the Role table.
76
-
77
-

78
-
79
-
1. On the Role Summary page, click the **Attach Policy** button in the **Managed Policies** section of the **Permissions** tab.
80
-
81
-

82
-
83
-
1. Type `AWSXRayWriteOnlyAccess` in the filter text box, select the checkbox next to the **AWSXRayWriteOnlyAccess** Managed Policy, and click the **Attach Policy** button.
84
-
85
-

86
-
87
-
1. The Role Summary will now include the **AWSXRayWriteOnlyAccess** policy in the list of **Managed Policies**.
88
-
89
-

90
-
71
+
```
72
+
LambdaExecutionRole:
73
+
Description: Creating service role in IAM for AWS Lambda
### 2. Seed the `uni-api` CodeCommit Git repository
92
+
### 1. Seed the `uni-api` CodeCommit Git repository
94
93
95
94
1. Each module has corresponding source code used to seed the CodeStar CodeCommit Git repository to support the workshop. To seed the CodeCommit Git repository, click on the **Launch Stack** button for your region below:
96
95
@@ -118,7 +117,7 @@ In order to tacke [Problem 1: Error Discovery Using X-Ray](#problem-1-error-disc
118
117
119
118
120
119
121
-
### 3. Fetch CodeCommit Git Repository
120
+
### 2. Fetch CodeCommit Git Repository
122
121
123
122
Now that the CodeCommit Git repository has been seeded with new source code, you will need to fetch the changes locally so that you may modify the code. Typically, this is accomplished using the `git pull` command, however for the workshop we have replaced the repository with a new history and different Git commands will be used.
### 4. Validate CodePipeline Unicorn API Deployment
133
+
### 3. Validate CodePipeline Unicorn API Deployment
135
134
136
135
After the repository has been seeded, it will start a pipeline execution. Monitor the pipeline until you observe the pipeline completion, indicated by the **Deploy** stage turning green.
137
136
@@ -140,7 +139,7 @@ After the repository has been seeded, it will start a pipeline execution. Monit
140
139
141
140
142
141
143
-
### 5. Exercise List Unicorns API Method
142
+
### 4. Exercise List Unicorns API Method
144
143
145
144
**Goal:** Use the CodeStar Console to find the Application Endpoint, and use your browser to test the "/unicorns" list resource.
0 commit comments