Skip to content

Commit 667336e

Browse files
author
Karun Agarwal
committed
And basic overview of infra and setup details
1 parent 34081e1 commit 667336e

File tree

3 files changed

+58
-1
lines changed

3 files changed

+58
-1
lines changed

docs/infra/overview.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: Overview
3+
---
4+
5+
<head>
6+
<title>Overview</title>
7+
<meta name="description" content="Overview of Infra management for Amakrush" />
8+
</head>
9+
10+
### Basic Details
11+
12+
- Cloud Platform: Microsoft Azure
13+
- Automation Tool: Terraform
14+
15+
Note:
16+
17+
* We are using centralized terraform state which is saved in Azure Blob Storage. Two persons will not be able to apply changes at same time as terraform uses state lock to avoid conflicting changes.
18+
* Avoid running the changes from local setup, ssh key stored at user's home location is only allowed to ssh to all VMs created. In case run locally ansible will lose access to all the VMs. (In future we will start using hashicorp vault to save ssh keys to avoid this)
19+

docs/infra/setting-up.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: Setup
3+
---
4+
5+
<head>
6+
<title>Setup</title>
7+
<meta name="description" content="Overview of Infra management for Amakrush" />
8+
</head>
9+
10+
Pre-requisites:
11+
12+
- Install Terraform
13+
- Install Azure CLI
14+
- Setup Azure CLI Credentials using AZ Login
15+
- Setup a storage container on Azure to save terraform state
16+
17+
Next Steps:
18+
19+
- Clone the [infra](https://github.com/AmakrushAI/infra) repo
20+
- Update the following block in terraform.tf with details of storage conatiner created by you
21+
22+
```tf
23+
backend "azurerm" {
24+
resource_group_name = "tfstate"
25+
storage_account_name = "tfstatejsv8r"
26+
container_name = "tfstate"
27+
key = "./terraform.tfstate"
28+
}
29+
```
30+
31+
- Run ```terraform init``` to initalize code and install necessary requirements
32+
- Run ```terraform plan``` to review changes
33+
- Run ```terraform apply``` to apply changes

sidebars.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ module.exports = {
1212
collapsed: false,
1313
items: ['development/starting'],
1414
},
15-
15+
{
16+
type: 'category',
17+
label: 'Infra',
18+
collapsed: false,
19+
items: ['infra/overview', 'infra/setting-up'],
20+
},
1621
],
1722

1823
// api: [{

0 commit comments

Comments
 (0)