Skip to content

Commit

Permalink
added example
Browse files Browse the repository at this point in the history
  • Loading branch information
zachreborn committed Mar 14, 2024
1 parent b952d87 commit 65ee8b9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
11 changes: 8 additions & 3 deletions modules/aws/transfer_family/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,17 @@
<!-- USAGE EXAMPLES -->
## Usage
### Simple Example
The following example creates a new SFTP server using the default settings. Settings include: S3 backend storage, public access, built in users, and SFTP transfer porotocol.
```
module test {
source =
module "vendor_sftp" {
source = "github.com/zachreborn/terraform-modules//modules/aws/transfer_family"
variable =
tags = {
created_by = "Zachary Hill"
role = "vendor sftp"
}
}
```

_For more examples, please refer to the [Documentation](https://github.com/zachreborn/terraform-modules)_
Expand Down
24 changes: 24 additions & 0 deletions modules/aws/transfer_family/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,18 @@ terraform {
# Module Configuration
###########################

##############
# Create logging IAM role
##############

##############
# Create CloudWatch log group
##############

##############
# Create the AWS transfer family server
##############

resource "aws_transfer_server" "this" {
certificate = var.certificate
directory_id = var.directory_id
Expand Down Expand Up @@ -58,3 +70,15 @@ resource "aws_transfer_server" "this" {
tls_session_resumption_mode = var.tls_session_resumption_mode
}
}


##############
# Create the transfer family server access
##############




##############
# Create the transfer family server workflow
##############

0 comments on commit 65ee8b9

Please sign in to comment.