Skip to content

V2 Rewrite #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add terraform doc
  • Loading branch information
iammukeshm committed Aug 23, 2024
commit 6a4245f8bb97b05bed4e0159c2bb0ed8ed9faa7e
8 changes: 0 additions & 8 deletions src/content/docs/dotnet-starter-kit/deployments/terraform.md

This file was deleted.

57 changes: 57 additions & 0 deletions src/content/docs/dotnet-starter-kit/deployments/terraform.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
title: Terraform
description: Setting up the Development Environment for .NET Starter Kit Development!
sidebar:
order: 2
---
import { Steps } from '@astrojs/starlight/components';

## Pre-Requisites

<Steps>
1. Install Terraform on your machine
If you are on Windows, use Chocolatey to install Terraform via the following CLI command.

```
choco install terraform
```

2. Once Terraform is installed, make sure that you machine is configured to authenticate into AWS. Please refer to [this article](https://codewithmukesh.com/blog/aws-credentials-for-dotnet-applications/#install-aws-cli). With that done, you are good to go!
</Steps>

## Bootstrapping

If you are deploying the `FSH .NET Starter Kit` for the first time, navigate to `./terraform/boostrap` and run the following commands,

```terraform
terraform init
terraform plan
terraform apply --auto-approve
```

This will provision the required backend resources on AWS that terraform would need in the next steps. Basics this will create an Amazon S3 Bucket, and DynamoDB Table.

## Deploy

Navigate to `./environments/dev/` and run the following.

```
terraform init
terraform plan
terraform apply --auto-approve
```

This will deploy the following,

- ECS Clusters and Tasks. (.NET Web API & Blazor)
- RDS PostgreSQL Database Instance.
- Required Networking Components like VPC, ALB etc.

## Destroy

Once you are done with your testing, ensure that you delete the resources to keep your bill under control.

````
terraform destroy --auto-approve
````

4 changes: 4 additions & 0 deletions src/styles/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,8 @@ header {

a{
text-decoration: none !important;
}

.sl-markdown-content a:not(:where(.not-content *)){
color: #3eaf7c;
}
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy