https://github.com/stackhpc/terraform-bastion
Bastion host state management for *vglab* and *sausage* cloud
https://github.com/stackhpc/terraform-bastion
Last synced: 4 days ago
JSON representation
Bastion host state management for *vglab* and *sausage* cloud
- Host: GitHub
- URL: https://github.com/stackhpc/terraform-bastion
- Owner: stackhpc
- Created: 2021-04-13T15:10:26.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2026-04-13T11:08:50.000Z (about 2 months ago)
- Last Synced: 2026-04-13T11:34:46.956Z (about 2 months ago)
- Language: HCL
- Homepage:
- Size: 116 KB
- Stars: 3
- Watchers: 6
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
bastion-terraform
=================
This repo contains Terraform script for provisioning a bastion host and
managing users and their SSH keys on the instance.
Configuration
-------------
On the repository, ensure the following variables are set:
TF_API_TOKEN # obtained from
TF_WORKSPACE # which matches the prefix bastion-
On the remote terraform backend, ensure that the following variables are defined:
OS_APPLICATION_CREDENTIAL_SECRET
OS_APPLICATION_CREDENTIAL_ID
OS_AUTH_URL
Administration
--------------
To add a new user, create a new file under `authorized_keys/` with the
SSH public key for the given user then create a pull request.
To remove a user, delete `authorized_keys/` and create a pull request.
If you are running this on your local machine:
terraform login # first time only
terraform init # first time only
terraform apply
Maintainers
----------
See [CODEOWNERS](./.github/CODEOWNERS).