Skip to content

Commit

Permalink
added Pre authentication login banner
Browse files Browse the repository at this point in the history
  • Loading branch information
jadhavswapnil71 committed May 20, 2022
1 parent 0889204 commit 77c11e0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ Available targets:
| <a name="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id) | VPC ID that the AWS Transfer Server will be deployed to | `string` | `null` | no |
| <a name="input_vpc_security_group_ids"></a> [vpc\_security\_group\_ids](#input\_vpc\_security\_group\_ids) | A list of security groups IDs that are available to attach to your server's endpoint. If no security groups are specified, the VPC's default security groups are automatically assigned to your endpoint. This property can only be used when endpoint\_type is set to VPC. | `list(string)` | `[]` | no |
| <a name="input_zone_id"></a> [zone\_id](#input\_zone\_id) | Route53 Zone ID to add the CNAME | `string` | `""` | no |
| <a name="input_pre_authentication_login_banner"></a> [pre_authentication\_login\_banner](#input\_pre_authentication\_login\_banner) | Pre authentication login banner to add the display banner | `string` | `""` | no |

## Outputs

Expand Down
2 changes: 2 additions & 0 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@
| <a name="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id) | VPC ID that the AWS Transfer Server will be deployed to | `string` | `null` | no |
| <a name="input_vpc_security_group_ids"></a> [vpc\_security\_group\_ids](#input\_vpc\_security\_group\_ids) | A list of security groups IDs that are available to attach to your server's endpoint. If no security groups are specified, the VPC's default security groups are automatically assigned to your endpoint. This property can only be used when endpoint\_type is set to VPC. | `list(string)` | `[]` | no |
| <a name="input_zone_id"></a> [zone\_id](#input\_zone\_id) | Route53 Zone ID to add the CNAME | `string` | `""` | no |
| <a name="input_pre_authentication_login_banner"></a> [pre_authentication\_login\_banner](#input\_pre_authentication\_login\_banner) | Pre authentication login banner to add the display banner | `string` | `""` | no |


## Outputs

Expand Down
16 changes: 8 additions & 8 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ data "aws_s3_bucket" "landing" {
resource "aws_transfer_server" "default" {
count = local.enabled ? 1 : 0

identity_provider_type = "SERVICE_MANAGED"
protocols = ["SFTP"]
domain = var.domain
endpoint_type = local.is_vpc ? "VPC" : "PUBLIC"
force_destroy = var.force_destroy
security_policy_name = var.security_policy_name
logging_role = join("", aws_iam_role.logging[*].arn)

identity_provider_type = "SERVICE_MANAGED"
protocols = ["SFTP"]
domain = var.domain
endpoint_type = local.is_vpc ? "VPC" : "PUBLIC"
force_destroy = var.force_destroy
security_policy_name = var.security_policy_name
logging_role = join("", aws_iam_role.logging[*].arn)
pre_authentication_login_banner = var.pre_authentication_login_banner
dynamic "endpoint_details" {
for_each = local.is_vpc ? [1] : []

Expand Down
7 changes: 7 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,10 @@ variable "eip_enabled" {
description = "Whether to provision and attach an Elastic IP to be used as the SFTP endpoint. An EIP will be provisioned per subnet."
default = false
}


variable "pre_authentication_login_banner" {
type = string
description = "This is pre authentication login banner while connectimg to server"
default = "This system is for the use of authorized Appzen users only."
}

0 comments on commit 77c11e0

Please sign in to comment.