Skip to content

mint3u/terraform-aws-transfer-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-aws-transfer-server

Terraform module to create a aws transfer server (SFTP)

Usage

resource "aws_s3_bucket" "bucket" {
  bucket = "bucket_name"
  acl    = "private"
}

module "sftp" {
  source = "git::https://github.com:felipefrizzo/terraform-aws-transfer-server.git?ref=master"

  transfer_server_name      = "sftp-server-name"
  transfer_server_user_name = "sftp-user-name"
  transfer_server_ssh_key   = "ssh-rsa AAAA..."
  bucket_name               = aws_s3_bucket.bucket.id
}

Inputs

Name Description Type Default Required
bucket_name S3 bucket name string `` yes
transfer_server_name Transfer Server name string `` yes
transfer_server_user_name Username for SFTP server string `` yes
transfer_server_ssh_key SSH Key for transfer server user string `` yes

init

terraform plan -var-file aaaa.tfvars

sftp -i ~/.ssh/id_rsa doumo-transfer-user@XXX.server.transfer.ap-northeast-1.amazonaws.com

About

Terraform module to create a aws transfer server (SFTP)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 100.0%