Skip to content

Commit 730bfe9

Browse files
committed
support route table
1 parent 679546f commit 730bfe9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Concerns/UsesEc2.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ public static function routeTable(): array
275275
return static::$routeTable;
276276
}
277277

278-
$name = Helpers::keyedResourceName(exclusive: false);
278+
$name = Manifest::has('aws.route-table')
279+
? Manifest::get('aws.route-table')
280+
: Helpers::keyedResourceName(exclusive: false);
279281

280282
$routeTables = Aws::ec2()->describeRouteTables([
281283
'Filters' => [

src/Steps/Network/SyncRouteTableStep.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ class SyncRouteTableStep implements Step
1414
{
1515
public function __invoke(array $options): StepResult
1616
{
17-
$routeTableName = Helpers::keyedResourceName(exclusive: false);
18-
1917
try {
2018
AwsResources::routeTable();
2119

@@ -28,7 +26,7 @@ public function __invoke(array $options): StepResult
2826
[
2927
'ResourceType' => 'route-table',
3028
...Aws::tags([
31-
'Name' => $routeTableName,
29+
'Name' => Helpers::keyedResourceName(exclusive: false),
3230
]),
3331
],
3432
],

0 commit comments

Comments
 (0)