Skip to content

Commit c13d723

Browse files
committed
Run integration tests
1 parent 5c97afe commit c13d723

File tree

8 files changed

+369
-123
lines changed

8 files changed

+369
-123
lines changed

packages/@aws-cdk/aws-route53resolver-alpha/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,13 @@ ruleGroup.associate('Association', {
120120
You can import an existing firewall rule group either by ID or by name.
121121

122122
To import by ID:
123+
123124
```ts
124125
const existingRuleGroup = route53resolver.FirewallRuleGroup.fromFirewallRuleGroupId(this, 'ImportedRuleGroup', 'fwr-123456');
125126
```
126127

127128
To import by name from the CDK context:
129+
128130
```ts
129131
const existingRuleGroupByName = route53resolver.FirewallRuleGroup.fromFirewallRuleGroupName(this, 'ImportedRuleGroup', 'MyFirewallRuleGroup');
130132
```

packages/@aws-cdk/aws-route53resolver-alpha/test/integ.firewall.js.snapshot/cdk-route53-resolver-firewall.assets.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/aws-route53resolver-alpha/test/integ.firewall.js.snapshot/cdk-route53-resolver-firewall.template.json

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
"VpcPublicSubnet1Subnet5C2D37C4": {
1919
"Type": "AWS::EC2::Subnet",
2020
"Properties": {
21-
"VpcId": {
22-
"Ref": "Vpc8378EB38"
23-
},
2421
"AvailabilityZone": {
2522
"Fn::Select": [
2623
0,
@@ -44,21 +41,24 @@
4441
"Key": "Name",
4542
"Value": "cdk-route53-resolver-firewall/Vpc/PublicSubnet1"
4643
}
47-
]
44+
],
45+
"VpcId": {
46+
"Ref": "Vpc8378EB38"
47+
}
4848
}
4949
},
5050
"VpcPublicSubnet1RouteTable6C95E38E": {
5151
"Type": "AWS::EC2::RouteTable",
5252
"Properties": {
53-
"VpcId": {
54-
"Ref": "Vpc8378EB38"
55-
},
5653
"Tags": [
5754
{
5855
"Key": "Name",
5956
"Value": "cdk-route53-resolver-firewall/Vpc/PublicSubnet1"
6057
}
61-
]
58+
],
59+
"VpcId": {
60+
"Ref": "Vpc8378EB38"
61+
}
6262
}
6363
},
6464
"VpcPublicSubnet1RouteTableAssociation97140677": {
@@ -75,12 +75,12 @@
7575
"VpcPublicSubnet1DefaultRoute3DA9E72A": {
7676
"Type": "AWS::EC2::Route",
7777
"Properties": {
78-
"RouteTableId": {
79-
"Ref": "VpcPublicSubnet1RouteTable6C95E38E"
80-
},
8178
"DestinationCidrBlock": "0.0.0.0/0",
8279
"GatewayId": {
8380
"Ref": "VpcIGWD7BA715C"
81+
},
82+
"RouteTableId": {
83+
"Ref": "VpcPublicSubnet1RouteTable6C95E38E"
8484
}
8585
},
8686
"DependsOn": [
@@ -102,15 +102,15 @@
102102
"VpcPublicSubnet1NATGateway4D7517AA": {
103103
"Type": "AWS::EC2::NatGateway",
104104
"Properties": {
105-
"SubnetId": {
106-
"Ref": "VpcPublicSubnet1Subnet5C2D37C4"
107-
},
108105
"AllocationId": {
109106
"Fn::GetAtt": [
110107
"VpcPublicSubnet1EIPD7E02669",
111108
"AllocationId"
112109
]
113110
},
111+
"SubnetId": {
112+
"Ref": "VpcPublicSubnet1Subnet5C2D37C4"
113+
},
114114
"Tags": [
115115
{
116116
"Key": "Name",
@@ -126,9 +126,6 @@
126126
"VpcPrivateSubnet1Subnet536B997A": {
127127
"Type": "AWS::EC2::Subnet",
128128
"Properties": {
129-
"VpcId": {
130-
"Ref": "Vpc8378EB38"
131-
},
132129
"AvailabilityZone": {
133130
"Fn::Select": [
134131
0,
@@ -152,21 +149,24 @@
152149
"Key": "Name",
153150
"Value": "cdk-route53-resolver-firewall/Vpc/PrivateSubnet1"
154151
}
155-
]
152+
],
153+
"VpcId": {
154+
"Ref": "Vpc8378EB38"
155+
}
156156
}
157157
},
158158
"VpcPrivateSubnet1RouteTableB2C5B500": {
159159
"Type": "AWS::EC2::RouteTable",
160160
"Properties": {
161-
"VpcId": {
162-
"Ref": "Vpc8378EB38"
163-
},
164161
"Tags": [
165162
{
166163
"Key": "Name",
167164
"Value": "cdk-route53-resolver-firewall/Vpc/PrivateSubnet1"
168165
}
169-
]
166+
],
167+
"VpcId": {
168+
"Ref": "Vpc8378EB38"
169+
}
170170
}
171171
},
172172
"VpcPrivateSubnet1RouteTableAssociation70C59FA6": {
@@ -183,12 +183,12 @@
183183
"VpcPrivateSubnet1DefaultRouteBE02A9ED": {
184184
"Type": "AWS::EC2::Route",
185185
"Properties": {
186-
"RouteTableId": {
187-
"Ref": "VpcPrivateSubnet1RouteTableB2C5B500"
188-
},
189186
"DestinationCidrBlock": "0.0.0.0/0",
190187
"NatGatewayId": {
191188
"Ref": "VpcPublicSubnet1NATGateway4D7517AA"
189+
},
190+
"RouteTableId": {
191+
"Ref": "VpcPrivateSubnet1RouteTableB2C5B500"
192192
}
193193
}
194194
},
@@ -206,11 +206,11 @@
206206
"VpcVPCGWBF912B6E": {
207207
"Type": "AWS::EC2::VPCGatewayAttachment",
208208
"Properties": {
209-
"VpcId": {
210-
"Ref": "Vpc8378EB38"
211-
},
212209
"InternetGatewayId": {
213210
"Ref": "VpcIGWD7BA715C"
211+
},
212+
"VpcId": {
213+
"Ref": "Vpc8378EB38"
214214
}
215215
}
216216
},
@@ -287,6 +287,11 @@
287287
}
288288
}
289289
},
290+
"Outputs": {
291+
"ImportedRuleGroupIdOutput": {
292+
"Value": "fwr-12345678"
293+
}
294+
},
290295
"Parameters": {
291296
"BootstrapVersion": {
292297
"Type": "AWS::SSM::Parameter::Value<String>",

packages/@aws-cdk/aws-route53resolver-alpha/test/integ.firewall.js.snapshot/cdk.out

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk/aws-route53resolver-alpha/test/integ.firewall.js.snapshot/integ.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)