> For the complete documentation index, see [llms.txt](https://docs.gdf.ai/gdf-full-stack-engineering/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gdf.ai/gdf-full-stack-engineering/troubleshooting/infrastructure-engineering.md).

# Infrastructure Engineering

There are multiple cloud platforms available such as Microsoft Azure, Amazon Web Service (AWS), Google Cloud, Digital Ocean, and many others. Each platform has their own way to log, report, and monitor issues. Use generative AI to quickly see how to troubleshoot a given platform or read through documentation to figure out what needs to be done.&#x20;

Below we go over a short example of using AWS CloudWatch to troubleshoot issues. CloudWatch is a logging service by provided by AWS that has native integrations into many AWS services that allow you to quickly troubleshoot issues with services such as EC2, API Gateway, and S3.&#x20;

#### Using AWS CloudWatch to Troubleshoot Infrastructure Issues

1. **Logging**:
   * Access the AWS Management Console or use the AWS CLI to create and manage CloudWatch Log Groups and Log Streams.
   * Configure your AWS resources (e.g., EC2 instances, Lambda functions) to send logs to Amazon CloudWatch.
   * Set up log retention policies to control how long logs are stored in CloudWatch.
2. **Log queries**:
   * Open the Amazon CloudWatch console and navigate to the "Logs Insights" section.
   * Select the desired Log Group and start writing custom queries using the CloudWatch Logs Query Language.
   * Use the built-in query editor to write, test, and save your queries.
   * Visualize your log data by creating custom charts and dashboards.
3. **Monitoring and alerting**:
   * In the AWS Management Console, navigate to the "CloudWatch" section.
   * Create CloudWatch Alarms to monitor specific metrics for your AWS resources.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.gdf.ai/gdf-full-stack-engineering/troubleshooting/infrastructure-engineering.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
