# Build a Modern Web Application

## Module 2: Host Your Application On A Web Server

In this module you will create a new microservice hosted using AWS Fargate.

We chose Fargate here because it's a great choice for building long-running processes such as microservices backends for web and mobile and PaaS platforms.In addition to Fargate, customers also have the option of using [AWS Lambda](https://aws.amazon.com/lambda/) for their compute needs. While Lambda offers the same serverless benefits as Fargate, Lambda is great for data-driven applications that need to respond in real-time to changes in data, shifts in system state, or actions by users.

### Module 2A: Setup Core Infrastructure

To create these resources, **run the following command in the Cloud9 terminal**&#x20;

```
aws cloudformation create-stack --stack-name MythicalMysfitsCoreStack --capabilities CAPABILITY_NAMED_IAM --template-body file://~/environment/aws-modern-application-workshop/module-2/cfn/core.yml
```

You can check on the status of your stack creation either via the AWS Console or by **running the command:**

```
aws cloudformation describe-stacks --stack-name MythicalMysfitsCoreStack
```


---

# Agent Instructions: 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:

```
GET https://jcmrmelgar.gitbook.io/notes/tecnicos/untitled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
