> For the complete documentation index, see [llms.txt](https://jcmrmelgar.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jcmrmelgar.gitbook.io/notes/tecnicos/untitled.md).

# 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
```
