Skip to content

Commit

Permalink
Merge pull request #763 from rust-lang/specify-aws-region-in-bastion-…
Browse files Browse the repository at this point in the history
…docs

specify aws region in bastion docs
  • Loading branch information
Kobzol authored Aug 5, 2024
2 parents 9843fc8 + cd02020 commit 4e0cd2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/infra/docs/bastion.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ When running the following commands, replace `USERNAME` and `IP_ADDRESS` with th

1. Run:
```
aws ssm put-parameter --type String --name "/prod/bastion/allowed-ips/USERNAME" --value "IP_ADDRESS/32"
aws ssm put-parameter --type String --name "/prod/bastion/allowed-ips/USERNAME" --value "IP_ADDRESS/32" --region us-west-1
```
2. Add the username to the list in
[`terraform/bastion/firewall.tf`][allowed-ips] (local variable
Expand All @@ -72,15 +72,15 @@ When running the following commands, replace `USERNAME` and `IP_ADDRESS` with th

1. Run:
```
aws ssm put-parameter --overwrite --type String --name "/prod/bastion/allowed-ips/USERNAME" --value "IP_ADDRESS/32"
aws ssm put-parameter --overwrite --type String --name "/prod/bastion/allowed-ips/USERNAME" --value "IP_ADDRESS/32" --region us-west-1
```
2. [apply the Terraform configuration][terraform-apply].

### Removing a whitelisted IP

1. Run:
```
aws ssm delete-parameter --name "/prod/bastion/allowed-ips/USERNAME"
aws ssm delete-parameter --name "/prod/bastion/allowed-ips/USERNAME" --region us-west-1
```
2. Remove the username from the list in
[`terraform/bastion/firewall.tf`][allowed-ips] (local variable
Expand Down

0 comments on commit 4e0cd2c

Please sign in to comment.