@@ -18,7 +18,6 @@ export interface SuiSingleNodeStackProps extends cdk.StackProps {
18
18
instanceCpuType : ec2 . AmazonLinuxCpuType ;
19
19
suiNetworkId : configTypes . SuiNetworkId ;
20
20
dataVolume : configTypes . SuiDataVolumeConfig ;
21
-
22
21
}
23
22
24
23
export class SuiSingleNodeStack extends cdk . Stack {
@@ -40,8 +39,6 @@ export class SuiSingleNodeStack extends cdk.Stack {
40
39
dataVolume,
41
40
} = props ;
42
41
43
-
44
-
45
42
// Using default VPC
46
43
const vpc = ec2 . Vpc . fromLookup ( this , "vpc" , { isDefault : true } ) ;
47
44
@@ -86,10 +83,9 @@ export class SuiSingleNodeStack extends cdk.Stack {
86
83
} ,
87
84
} ) ;
88
85
89
- // Assuming the SingleNodeConstruct exposes the EC2 instance as a property named 'instance'
86
+ // Assuming the SingleNodeConstruct exposes the EC2 instance as a property named 'instance'
90
87
// Set a CreationPolicy with a 30-minute timeout
91
88
92
-
93
89
// Parsing user data script and injecting necessary variables
94
90
const nodeStartScript = fs . readFileSync ( path . join ( __dirname , "assets" , "user-data" , "node.sh" ) ) . toString ( ) ;
95
91
const dataVolumeSizeBytes = dataVolume . sizeGiB * constants . GibibytesToBytesConversionCoefficient ;
@@ -102,8 +98,11 @@ export class SuiSingleNodeStack extends cdk.Stack {
102
98
_NODE_CF_LOGICAL_ID_ : node . nodeCFLogicalId ,
103
99
_DATA_VOLUME_TYPE_ : dataVolume . type ,
104
100
_DATA_VOLUME_SIZE_ : dataVolumeSizeBytes . toString ( ) ,
105
-
101
+ _NETWORK_ID : suiNetworkId ,
106
102
} ) ;
103
+
104
+ // /var/log/cloud-init.log and
105
+ // /var/log/cloud-init-output.log
107
106
node . instance . addUserData ( modifiedInitNodeScript ) ;
108
107
109
108
// Adding CloudWatch dashboard to the node
0 commit comments