@@ -4,10 +4,6 @@ locals {
4
4
disk_setup_user_data = base64encode (<<- EOT
5
5
#!/bin/bash
6
6
set -xeuo pipefail
7
-
8
- yum update -y
9
- yum install -y lvm2 util-linux jq e2fsprogs
10
-
11
7
BOTTLEROCKET_ROOT="/.bottlerocket/rootfs"
12
8
DRIVE_PATHS=()
13
9
@@ -31,15 +27,7 @@ locals {
31
27
pvcreate "$${device_path}"
32
28
done
33
29
34
- echo "Creating VG instance-store-vg"
35
30
vgcreate instance-store-vg "$${DRIVE_PATHS[@]}"
36
-
37
- echo "PV Status:"
38
- pvs
39
- echo "VG Status:"
40
- vgs
41
-
42
- echo "Completed LVM setup successfully"
43
31
EOT
44
32
)
45
33
}
@@ -57,7 +45,6 @@ module "eks" {
57
45
58
46
cluster_endpoint_public_access = true
59
47
60
- # Add CloudWatch logging
61
48
cluster_enabled_log_types = var. cluster_enabled_log_types
62
49
63
50
eks_managed_node_groups = {
@@ -80,19 +67,20 @@ module "eks" {
80
67
}
81
68
82
69
enable_bootstrap_user_data = true
70
+
83
71
bootstrap_extra_args = <<- TOML
84
- [settings.bootstrap-containers.disk-setup ]
72
+ [settings.bootstrap-containers.default ]
85
73
mode = "once"
86
74
essential = true
87
75
user-data = "${ local . disk_setup_user_data } "
88
76
TOML
89
77
90
78
# Simpler test to see if the user data is being applied
91
79
# bootstrap_extra_args = <<-TOML
92
- # [settings.bootstrap-containers.disk-setup ]
80
+ # [settings.bootstrap-containers.default ]
93
81
# mode = "once"
94
82
# essential = true
95
- # user-data = "${base64encode("#!/bin/bash\necho 'Simple test' > /tmp/test.log")} "
83
+ # user-data = "IyEvYmluL2Jhc2gKZWNobyBIRUxMTyBXT1JMRA== "
96
84
# TOML
97
85
98
86
}
0 commit comments