Skip to content

Commit e8d22b7

Browse files
docs: Collaborative debugging with Cloud Pods (#246)
Co-authored-by: Quetzalli <[email protected]>
1 parent 63772a5 commit e8d22b7

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

src/content/docs/aws/tutorials/cloud-pods-collaborative-debugging.mdx

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "How To: Collaborative AWS local development with LocalStacks Cloud Pods"
2+
title: "How To: Collaborative AWS local development with LocalStack's Cloud Pods"
33
description: Replicating development environments ensures that all developers, regardless of their local machine configurations or operating systems, work within an environment that closely mirrors production. This consistency helps identify and solve environment-specific issues early in the development cycle, reducing the "it works on my machine" problem where code behaves differently on different developers' machines.
44
services:
55
- iam
@@ -123,9 +123,11 @@ resource "aws_iam_policy" "lambda_dynamodb_policy" {
123123

124124
Bob has mistakenly used `dynamodb:Scan` and `dynamodb:Query`, but missed adding the `dynamodb:GetItem` action to the policy document above.
125125

126+
## Testing the application
127+
126128
### Reproducing the issue locally
127129

128-
Lets test out the current state of the application.
130+
Let's test out the current state of the application.
129131
The Terraform configuration file outputs the REST API ID of the API Gateway.
130132
We can capture that value and use it further to invoke the **`add-product`** Lambda:
131133

@@ -199,7 +201,7 @@ Services: sts,iam,apigateway,dynamodb,lambda,s3,cloudwatch,logs
199201

200202
LocalStack provides a remote storage backend that can be used to store the state of your application and share it with your team members.
201203

202-
The Cloud Pods CLI is included in the LocalStack CLI installation, so theres no need for additional plugins to begin using it.
204+
The Cloud Pods CLI is included in the LocalStack CLI installation, so there's no need for additional plugins to begin using it.
203205
The `LOCALSTACK_AUTH_TOKEN` needs to be set as an environment variable.
204206

205207
Additionally, there are other commands for managing Cloud Pods included in the CLI:
@@ -249,7 +251,7 @@ involved, meaning that the Lambda logs are still in the CloudWatch log groups.
249251

250252
![CloudWatch Logs](/images/aws/cloudwatch-logs.png)
251253

252-
By spotting the error message, theres an instant starting point for checking the source of the problem.
254+
By spotting the error message, there's an instant starting point for checking the source of the problem.
253255
The error message displayed in the logs is very specific:
254256

255257
`"Error: User: arn:aws:sts::000000000000:assumed-role/productRole/get-product is not authorized to perform: dynamodb:GetItem on resource: arn:aws:dynamodb:us-east-1:000000000000:table/Products because no identity-based policy allows the dynamodb:GetItem action (Service: DynamoDb, Status Code: 400, Request ID: d50e9dad-a01a-4860-8c21-e844a930ba7d)"`
@@ -335,12 +337,15 @@ The Cloud Pods command-line interface enables users to manage these remotes with
335337

336338
## Conclusion
337339

338-
Cloud Pods play a crucial role in team collaboration, significantly speeding up development processes.
339-
The multiple and
340-
versatile options for remote storage can support different business requirements for companies that prefer using the
341-
environments they control.
342-
Cloud Pods are not just for teamwork; they also excel in other areas, such as creating
343-
resources in Continuous Integration (CI) for ultra-fast testing pipelines.
340+
Cloud Pods play a crucial role in team collaboration, significantly speeding up development processes. The multiple and versatile options for remote storage can support different business requirements for companies that prefer using the environments they control. Cloud Pods are not just for teamwork; they also excel in other areas, such as creating resources in Continuous Integration (CI) for ultra-fast testing pipelines.
341+
342+
This tutorial demonstrated how Cloud Pods enable seamless collaboration between team members by:
343+
- Capturing exact environment states for easy sharing
344+
- Providing immediate access to service data and logs for debugging
345+
- Maintaining consistency across different developer machines
346+
- Supporting multiple storage backends for compliance needs
347+
348+
The workflow from Bob capturing the problematic state, to Alice debugging and fixing it, to Carol using the stable version for testing showcases how Cloud Pods streamline development cycles and eliminate environment-specific issues.
344349

345350
## Additional resources
346351

0 commit comments

Comments
 (0)