You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Install the [AWS CLI](https://aws.amazon.com/cli/)
8
8
* Log into your `dev` account (with [`aws sso login`](https://awscli.amazonaws.com/v2/documentation/api/latest/reference/sso/login.html))
9
-
* Ensure your account has a [Terraform State S3 Backend](https://github.com/byu-oit/terraform-aws-backend-s3) deployed
9
+
* Ensure your account has a [Terraform/OpenTofu State S3 Backend](https://github.com/byu-oit/terraform-aws-backend-s3) deployed
10
10
* If you're outside the [`byu-oit` GitHub organization](https://github.com/byu-oit):
11
11
* Obtain a DivvyCloud username and password from the Cloud Office at [email protected]
12
-
* Install [the GitHub App used for auto-merging Dependabot pull requests](https://github.com/apps/dependabot-merge-action) to your organization
13
12
14
13
## Setup
15
14
* Create a new repo [using this template](https://github.com/byu-oit/hw-lambda-api/generate).
@@ -47,9 +46,9 @@ git commit -am "Update template with repo specific details"
47
46
### Deploy the "one time setup" resources
48
47
49
48
```sh
50
-
cdterraform-iac/dev/setup/
51
-
terraform init
52
-
terraform apply
49
+
cd iac/dev/setup/
50
+
tofu init
51
+
tofu apply
53
52
```
54
53
55
54
In the AWS Console, see if you can find the resources from `setup.tf` (SSM Param).
@@ -68,11 +67,11 @@ If you look at [`.github/workflows/deploy.yml`](.github/workflows/deploy.yml), y
68
67
69
68
### View the deployed application
70
69
71
-
Anytime after the `Terraform Apply` step succeeds:
70
+
Anytime after the `Tofu Apply` step succeeds:
72
71
```sh
73
72
cd ../app/
74
-
terraform init
75
-
terraform output
73
+
tofu init
74
+
tofu output
76
75
```
77
76
78
77
This will output a DNS Name. Enter this in a browser. You should get a JSON response. Between `index.js` and `main.tf`, can you find what pieces are necessary to make this data available to the app?
@@ -98,8 +97,8 @@ In GitHub Actions, watch the deploy steps run (you have a new push, so you'll ha
98
97
99
98
## Learn what was built
100
99
101
-
By digging through the `.tf` files, you'll see what resources are being created. You should spend some time searching through the AWS Console for each of these resources. The goal is to start making connections between the Terraform syntax and the actual AWS resources that are created.
100
+
By digging through the `.tf` files, you'll see what resources are being created. You should spend some time searching through the AWS Console for each of these resources. The goal is to start making connections between the OpenTofu syntax and the actual AWS resources that are created.
102
101
103
-
Several OIT created Terraform modules are used. You can look these modules up in our GitHub Organization. There you can see what resources each of these modules creates. You can look those up in the AWS Console too.
102
+
Several OIT created Terraform/OpenTofu modules are used. You can look these modules up in our GitHub Organization. There you can see what resources each of these modules creates. You can look those up in the AWS Console too.
104
103
105
104
<!--TODO add some architecture docs and diagrams -->
0 commit comments