Skip to content

Commit 73af9a4

Browse files
Updated the usage block for the module
1 parent 6877801 commit 73af9a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Terraform module implementation for managing stateful application on AWS modelle
44
### Usage
55
Note: Currently only Amazon Linux based AMI is supported. The script is written assuming Amazon Linux and currently only tested on Amazon Linux.
66

7-
(To be updated)
87
```terraform
98
module "cluster" {
109
source = "git::[email protected]:prashantkalkar/stateful_application_module.git?ref=<version-git-tag>"
1110
app_name = "cluster-test-setup"
11+
node_image = "<ami_id>"
1212
node_key_name = "my-keypair"
1313
nodes = [
1414
{
@@ -19,21 +19,25 @@ module "cluster" {
1919
{
2020
node_ip = "<InstanceIPToBeAllocated>"
2121
node_subnet_id = "<subnet_id>"
22+
node_files_toupload = [filebase64("${path.module}/config_file.cfg")]
2223
},
2324
{
2425
node_ip = "<InstanceIPToBeAllocated>"
2526
node_subnet_id = "<subnet_id>"
27+
node_files_toupload = [filebase64("${path.module}/config_file.cfg")]
2628
}
2729
]
2830
node_config_script = filebase64("${path.module}/node_config_script.sh")
2931
security_groups = [aws_security_group.cluster_sg.id]
32+
instance_type = "<node_instance_type>"
3033
data_volume = {
3134
file_system_type = "xfs"
3235
mount_path = "/mydata"
3336
mount_path_owner_user = "ec2-user"
3437
mount_path_owner_group = "ec2-user"
3538
size_in_gibs = 16
3639
type = "gp3"
40+
mount_params = ["noatime"]
3741
}
3842
node_image = "<ami_id>"
3943
}

0 commit comments

Comments
 (0)