Skip to content

Commit

Permalink
Update PRODUCTION_PROVISION_README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kltm authored Jan 23, 2024
1 parent 4462b0a commit 33e6c83
Showing 1 changed file with 25 additions and 8 deletions.
33 changes: 25 additions & 8 deletions provision/production/PRODUCTION_PROVISION_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,35 @@ emacs config-instance.yaml # verify the location of the SSH keys for your AWS i
emacs aws/main.tf # technically optional; verify the location of the public ssh key in `aws/main.tf`
```

5. test the deployment
As well, give a human-readable string for the instance/tags/name (EC2 instance name tag), make it the same at the namespace pattern above; i.e. `production-2024-01-22`:

```
emacs config-instance.yaml
```

5. Test the deployment

`REPLACE_ME_WITH_S3_WORKSPACE_NAME` would be something like `production-<TODAYS_DATE>`; i.e. `production-2024-01-22`

```bash
go-deploy --workspace REPLACE_ME_WITH_TERRAFORM_BACKEND --working-directory aws -verbose -dry-run --conf config-instance.yaml
go-deploy --workspace REPLACE_ME_WITH_S3_WORKSPACE_NAME --working-directory aws -verbose -dry-run --conf config-instance.yaml
```

7. deploy if all looks good.
7. Deploy

Deploy command:
```bash
go-deploy --workspace REPLACE_ME_WITH_TERRAFORM_BACKEND --working-directory aws -verbose --conf config-instance.yaml
# display the terraform state. The aws resources that were created.
go-deploy --workspace REPLACE_ME_WITH_TERRAFORM_BACKEND --working-directory aws -verbose -show
# display the public ip address of the aws instance
go-deploy --workspace REPLACE_ME_WITH_TERRAFORM_BACKEND --working-directory aws -verbose -output
go-deploy --workspace REPLACE_ME_WITH_S3_WORKSPACE_NAME --working-directory aws -verbose --conf config-instance.yaml
```

Just to check, ask it to display what it just did (display the Terraform state):
```
go-deploy --workspace REPLACE_ME_WITH_S3_WORKSPACE_NAME --working-directory aws -verbose -show
```

Finally, just show the IP address of the AWS instance:
```
go-deploy --workspace REPLACE_ME_WITH_S3_WORKSPACE_NAME --working-directory aws -verbose -output
```

Useful Details for troubleshooting:
Expand Down

0 comments on commit 33e6c83

Please sign in to comment.