Difference between revisions of "Terraform module: rds bastion"

From wikieduonline
Jump to navigation Jump to search
Line 16: Line 16:
 
* <code>[[aws s3 ls]]</code>
 
* <code>[[aws s3 ls]]</code>
 
* <code>[[aws s3 cp ~/.ssh/rsa_key.pub]] s3://your-bastion-bucket-name/public-keys/</code>
 
* <code>[[aws s3 cp ~/.ssh/rsa_key.pub]] s3://your-bastion-bucket-name/public-keys/</code>
* <code>[[ls la ~/.ssh/]]</code>
+
* <code>[[ls -la ~/.ssh/]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 19:33, 29 September 2022


To access/create user: SSH users are managed by their public key, simply drop the SSH key of the user in the /public-keys/ path of the bucket. Keys should be named like 'username.pub', this will create the user 'username' on the bastion server. Username must contain alphanumeric characters only.

module "rds_bastion" {
  source  = "Guimove/bastion/aws"
  version = "2.3.0"
  bucket_name = "my_famous_bucket_name"
  .../...
}


Related

See also

Advertising: