File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ Terraform module implementation for managing stateful application on AWS modelle
4
4
### Usage
5
5
Note: Currently only Amazon Linux based AMI is supported. The script is written assuming Amazon Linux and currently only tested on Amazon Linux.
6
6
7
- (To be updated)
8
7
``` terraform
9
8
module "cluster" {
10
9
source = "git::[email protected] :prashantkalkar/stateful_application_module.git?ref=<version-git-tag>"
11
10
app_name = "cluster-test-setup"
11
+ node_image = "<ami_id>"
12
12
node_key_name = "my-keypair"
13
13
nodes = [
14
14
{
@@ -19,21 +19,25 @@ module "cluster" {
19
19
{
20
20
node_ip = "<InstanceIPToBeAllocated>"
21
21
node_subnet_id = "<subnet_id>"
22
+ node_files_toupload = [filebase64("${path.module}/config_file.cfg")]
22
23
},
23
24
{
24
25
node_ip = "<InstanceIPToBeAllocated>"
25
26
node_subnet_id = "<subnet_id>"
27
+ node_files_toupload = [filebase64("${path.module}/config_file.cfg")]
26
28
}
27
29
]
28
30
node_config_script = filebase64("${path.module}/node_config_script.sh")
29
31
security_groups = [aws_security_group.cluster_sg.id]
32
+ instance_type = "<node_instance_type>"
30
33
data_volume = {
31
34
file_system_type = "xfs"
32
35
mount_path = "/mydata"
33
36
mount_path_owner_user = "ec2-user"
34
37
mount_path_owner_group = "ec2-user"
35
38
size_in_gibs = 16
36
39
type = "gp3"
40
+ mount_params = ["noatime"]
37
41
}
38
42
node_image = "<ami_id>"
39
43
}
You can’t perform that action at this time.
0 commit comments