Deploys Active Directory and FSx for Windows file system.
Example:
module "fsx" {
source = "github.com/andreswebs/terraform-aws-ad-fsx"
ad_name = var.ad_name
vpc_id = var.vpc_id
subnet_ids = var.subnet_ids
ad_password_ssm_parameter_name = var.ad_password_ssm_parameter_name
}
Name | Description | Type | Default | Required |
---|---|---|---|---|
ad_log_retention_in_days | AD log retention in days | number |
30 |
no |
ad_name | AD name (FQDN), in the format directory.example.com |
string |
n/a | yes |
ad_ssm_parameter_name_dns_servers | Name of SSM parameter to store the AD domain controller IPs (DNS servers) | string |
"/dns-servers" |
no |
ad_ssm_parameter_name_domain | Name of SSM parameter to store the AD domain name | string |
"/domain" |
no |
ad_ssm_parameter_name_password | Name of SSM parameter to store the AD administrator password | string |
"/password" |
no |
ad_ssm_parameter_name_username | Name of SSM parameter to store the AD administrator password | string |
"/username" |
no |
ad_ssm_prefix | SSM prefix for AD | string |
"/ad" |
no |
fsx_deployment_type | FSx deployment type | string |
"SINGLE_AZ_2" |
no |
fsx_file_system_name | Name of the FSx Windows file system | string |
"file-system" |
no |
fsx_skip_final_backup | Skip final FSx backup? | bool |
true |
no |
fsx_ssm_parameter_name_ip_address | Name of SSM parameter to store the file system IP address | string |
"/ip-address" |
no |
fsx_ssm_prefix | SSM parameters prefix for FSx | string |
"/fsx" |
no |
fsx_storage_capacity | FSx Storage capacity | number |
32 |
no |
fsx_storage_type | FSx storage type | string |
"SSD" |
no |
fsx_throughput_capacity | FSx throughput capacity | number |
8 |
no |
kms_key_deletion_window_in_days | KMS key deletion window in days | number |
30 |
no |
kms_key_enable_rotation | Enable KMS key rotation? | bool |
true |
no |
kms_key_name | KMS key name, appended to alias/ |
string |
"fsx-key" |
no |
subnet_ids | Subnet IDs | list(string) |
n/a | yes |
vpc_id | VPC ID | string |
n/a | yes |
No modules.
Name | Description |
---|---|
directory | The aws_directory_service resource |
directory_info | Non-sensitive info from the aws_directory_service_directory resource |
file_system | The aws_fsx_windows_file_system resource |
Name | Version |
---|---|
aws | >= 3.50.0 |
random | >= 3.1.0 |
Name | Version |
---|---|
terraform | >= 1.0.0 |
aws | >= 3.50.0 |
random | >= 3.1.0 |
Name | Type |
---|---|
aws_cloudwatch_log_group.ad | resource |
aws_cloudwatch_log_resource_policy.ad_logs | resource |
aws_directory_service_directory.this | resource |
aws_directory_service_log_subscription.this | resource |
aws_fsx_windows_file_system.this | resource |
aws_kms_alias.this | resource |
aws_kms_key.this | resource |
aws_security_group.fsx | resource |
aws_ssm_parameter.dns_servers | resource |
aws_ssm_parameter.domain | resource |
aws_ssm_parameter.fsx_ip_address | resource |
aws_ssm_parameter.password | resource |
aws_ssm_parameter.username | resource |
random_password.this | resource |
aws_caller_identity.current | data source |
aws_iam_policy_document.ad_logs | data source |
aws_iam_policy_document.fsx_key | data source |
aws_partition.current | data source |
aws_vpc.selected | data source |
Andre Silva - @andreswebs
This project is licensed under the Unlicense.