@@ -50,51 +50,42 @@ access to.
50
50
Once that's done [ apply the playbook] [ ansible-apply ] and [ add a new whitelisted
51
51
IP address] ( #adding-a-whitelisted-ip ) .
52
52
53
- ### Adding a whitelisted IP
53
+ ## Editing a whitelisted IP
54
54
55
55
Due to privacy reasons, all the static IP addresses of team members with access
56
56
to the bastion are stored on [ AWS SSM Parameter Store] [ ssm ] instead of public
57
- git repositories. To add an IP address you can run this command (taking care of
58
- replacing ` USERNAME ` and ` IP_ADDRESS ` with the proper values):
57
+ git repositories.
58
+ When running the following commands, replace ` USERNAME ` and ` IP_ADDRESS ` with the proper values.
59
59
60
- ```
61
- aws ssm put-parameter --type String --name "/prod/bastion/allowed-ips/USERNAME" --value "IP_ADDRESS/32"
62
- ```
60
+ ### Adding a whitelisted IP
63
61
64
- You'll also need to add the username to the list in
65
- [ ` terraform/bastion/firewall.tf ` ] [ allowed-ips ] (local variable
66
- ` allowed_users ` ). Once you made all the needed changes you wanted you need to
67
- [ apply the Terraform configuration] [ terraform-apply ] .
62
+ 1 . Run:
63
+ ```
64
+ aws ssm put-parameter --type String --name "/prod/bastion/allowed-ips/USERNAME" --value "IP_ADDRESS/32"
65
+ ```
66
+ 2 . Add the username to the list in
67
+ [ ` terraform/bastion/firewall.tf ` ] [ allowed-ips ] (local variable
68
+ ` allowed_users ` ).
69
+ 3 . [ apply the Terraform configuration] [ terraform-apply ] .
68
70
69
71
### Updating a whitelisted IP
70
72
71
- Due to privacy reasons, all the static IP addresses of team members with access
72
- to the bastion are stored on [ AWS SSM Parameter Store] [ ssm ] instead of public
73
- git repositories. To update an IP address you can run this command (taking care
74
- of replacing ` USERNAME ` and ` IP_ADDRESS ` with the proper values):
75
-
76
- ```
77
- aws ssm put-parameter --overwrite --type String --name "/prod/bastion/allowed-ips/USERNAME" --value "IP_ADDRESS/32"
78
- ```
79
-
80
- Once you made all the needed changes you wanted you need to [ apply the
81
- Terraform configuration] [ terraform-apply ] .
73
+ 1 . Run:
74
+ ```
75
+ aws ssm put-parameter --overwrite --type String --name "/prod/bastion/allowed-ips/USERNAME" --value "IP_ADDRESS/32"
76
+ ```
77
+ 2 . [ apply the Terraform configuration] [ terraform-apply ] .
82
78
83
79
### Removing a whitelisted IP
84
80
85
- Due to privacy reasons, all the static IP addresses of team members with access
86
- to the bastion are stored on [ AWS SSM Parameter Store] [ ssm ] instead of public
87
- git repositories. To remove an IP address you can run this command (taking care
88
- of replacing ` USERNAME ` with the proper value):
89
-
90
- ```
91
- aws ssm delete-parameter --name "/prod/bastion/allowed-ips/USERNAME"
92
- ```
93
-
94
- You'll also need to remove the username from the list in
95
- [ ` terraform/bastion/firewall.tf ` ] [ allowed-ips ] (local variable
96
- ` allowed_users ` ). Once you made all the needed changes you wanted you need to
97
- [ apply the Terraform configuration] [ terraform-apply ] .
81
+ 1 . Run:
82
+ ```
83
+ aws ssm delete-parameter --name "/prod/bastion/allowed-ips/USERNAME"
84
+ ```
85
+ 2 . Remove the username from the list in
86
+ [ ` terraform/bastion/firewall.tf ` ] [ allowed-ips ] (local variable
87
+ ` allowed_users ` ).
88
+ 3 . [ apply the Terraform configuration] [ terraform-apply ] .
98
89
99
90
[ ansible ] : https://github.com/rust-lang/simpleinfra/blob/master/ansible/playbooks/bastion.yml
100
91
[ terraform ] : https://github.com/rust-lang/simpleinfra/tree/master/terraform/bastion
0 commit comments