@@ -62,29 +62,41 @@ describe("SingleNodeBitcoinCoreStack", () => {
62
62
// Has EC2 instance with node configuration
63
63
template . hasResourceProperties ( "AWS::EC2::Instance" , {
64
64
InstanceType : Match . stringLikeRegexp ( ".*" ) , // accept any value including 'undefined.undefined'
65
- BlockDeviceMappings : Match . arrayWith ( [
65
+ BlockDeviceMappings : [
66
66
{
67
67
DeviceName : "/dev/xvda" ,
68
68
Ebs : Match . objectLike ( {
69
69
Encrypted : true ,
70
70
} ) ,
71
71
} ,
72
- {
73
- DeviceName : "/dev/sdf" ,
74
- Ebs : Match . objectLike ( {
75
- Encrypted : true ,
76
- } ) ,
77
- } ,
78
- ] ) ,
72
+ ] ,
79
73
SecurityGroupIds : Match . anyValue ( ) ,
80
74
SubnetId : Match . anyValue ( ) ,
81
75
UserData : Match . anyValue ( ) ,
82
76
} ) ;
83
77
78
+ // Has EBS data volume
79
+ template . hasResourceProperties ( "AWS::EC2::Volume" , {
80
+ AvailabilityZone : Match . anyValue ( ) ,
81
+ Encrypted : true ,
82
+ Iops : 3000 ,
83
+ MultiAttachEnabled : false ,
84
+ Size : 1000 ,
85
+ Throughput : 125 ,
86
+ VolumeType : "gp3" ,
87
+ } ) ;
88
+
89
+ // Has EBS data volume attachment
90
+ template . hasResourceProperties ( "AWS::EC2::VolumeAttachment" , {
91
+ Device : "/dev/sdf" ,
92
+ InstanceId : Match . anyValue ( ) ,
93
+ VolumeId : Match . anyValue ( ) ,
94
+ } ) ;
95
+
84
96
85
97
// Has CloudWatch dashboard
86
98
template . hasResourceProperties ( "AWS::CloudWatch::Dashboard" , {
87
99
DashboardBody : Match . anyValue ( ) ,
88
100
} ) ;
89
101
} ) ;
90
- } ) ;
102
+ } ) ;
0 commit comments