Skip to content

akumadare/terraform-aws-transfer

 
 

Repository files navigation

terraform-aws-transfer

Terraform Module for AWS Transfer for SFTP.

This module aims to cover all connotations of setting up a AWS Transfer for SFTP Server along with users.

The following resources are supported:

  • aws_transfer_server
  • aws_transfer_user
  • aws_transfer_ssh_key

This Module will optionally create a Route53 CNAME Record for the server endpoint.

Usage

module "transfer_server" {
  source                = "../.."
  logging_role_arn      = "arn:aws:iam::123456789012:role/custom/sftp-transfer-logging-role"
  create_route53_record = true
  route53_record_zone   = "ZABCD123456"
  route53_record_name   = "sftp.example.co.uk"
}

module "transfer_user_ssm_key_body" {
  source                    = "../../submodules/transfer-user"
  transfer_server_id        = "${module.transfer_server.transfer_server_id}"
  user_name                 = "test-user-1"
  add_transfer_ssh_keys     = true
  use_ssm                   = true
  transfer_ssh_key_ssm_path = "/test/base/path/test-user-1"
}

module "transfer_user_key_bodys" {
  source                    = "../../submodules/transfer-user"
  transfer_server_id        = "${module.transfer_server.transfer_server_id}"
  user_name                 = "test-user-2-multi-keys"
  add_transfer_ssh_keys     = true
  transfer_ssh_key_bodys    = ["ssh-rsa aakmsdfkmsfgoker132443t909doweWFSMLKSEF", "ssh-rsa alksmafgk232939ASDOSEFOANOSAEF"]
}

Examples

Terraform Versions

This module supports Terraform v0.11 from v0.0.1 Terraform v0.12 support is coming soon...

Authors

Module managed by
Rob Houghton
Josh Sinfield
Ben Arundel

Notes

About

Terraform Module for AWS SFTP Transfer for S3

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 100.0%