Skip to content

Commit b7e14ce

Browse files
Update README.md
1 parent 29a46ae commit b7e14ce

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

README.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,27 @@
22

33
This project declares the infrastructure currently used by Subspace Network.
44

5-
We use **Terraform** and **DigitalOcean**. Any **project**, **droplet**, **volume**, **attachment** must be defined in this repository to be reviewed and deployed using IAC.
5+
We use **Terraform** and **AWS**. Any **project**, **instances**, **volume**, **attachment** must be defined in this repository to be reviewed and deployed using IAC.
66

77
Terraform projects folder structure:
88

99
```
10-
└── resources
11-
└── aries-dev/
12-
└── aries-test-a/
13-
└── aries-test-b/
14-
└── polkadot-archive/
15-
└── status-page/
16-
└── telemetry/
17-
└── common.tf
10+
resources
11+
├── README.md
12+
├── devnet
13+
├── gemini-3h
14+
├── leaseweb
15+
├── mainnet
16+
├── packer
17+
├── taurus
18+
└── telemetry
1819
```
1920

20-
- `common.tf` is located on the resources folder, it contains all the definitions to be used for each project.
21-
- To re use common definitions a `symlink` is created using `/resources/common.tf` as the source.
2221
- If you need to **create a new project**:
2322
- go to the **resources** folder,
24-
- create a **new folder-project**
25-
- link common definitions running `ln -s ../common.tf common.tf`.
26-
- Then you are ready to follow instructions to **init** terraform, **add resources**, **plan** the resource deployment and **apply** the resource deployments in **DigitalOcean**
23+
- create a **new folder-project**
24+
- use the terraform.tfvars.example from another project to populate the input variables
25+
- Then you are ready to follow instructions to **init** terraform, **add resources**, **plan** the resource deployment and **apply** the resource deployments in **AWS**
2726

2827
_To apply any updates or new definitions_ you must always work in a separate branch and create a _Pull Request to the main branch_.
2928

@@ -36,11 +35,11 @@ Install Terraform cli:
3635

3736
## Getting started.
3837

39-
Start by defining your personal DigitalOcean access token as an env variable, so you won’t have to set your token each time you run Terraform.
40-
You can find your API token in your [DigitalOcean](https://cloud.digitalocean.com/account/api/tokens) account.
38+
Start by defining your personal AWS access and secret keys as an env variable, so you won’t have to set your token each time you run Terraform.
4139

4240
```
43-
export DO_TOKEN=9999999999999999aaaaaaaaaaaaaaa
41+
export AWS_ACCESS_KEY_ID="your_access_key"
42+
export AWS_SECRET_ACCESS_KEY="your_secret_key"
4443
```
4544

4645
Go to **resources/PROJECT_NAME** directory and run the following commands to init terraform:
@@ -59,8 +58,7 @@ In the **resources/PROJECT_NAME** directory, run the following commands:
5958
1. Run the **plan** command with the variable values passed in to see Terraform's steps to deploy your project resources.
6059

6160
```SH
62-
terraform plan -var "do_token=${DO_TOKEN}" -out current-plan.tfplan
63-
# DO NOT FORGET TO EXPORT DO_TOKEN before running this command.
61+
terraform plan -var-file terraform.tfvars -out current-plan.tfplan
6462
```
6563

6664
2. Run the **apply** command with the generated **current-plan.tfplan**.

0 commit comments

Comments
 (0)