Commit 8b60ff4
fix(Vpc): use self.natInstances in registerOutputs to fix Vpc.get() with bastion (#6347)
When using Vpc.get() to reference an existing VPC created with bastion: true,
deployment fails with "Cannot access 'natInstances' before initialization".
The registerOutputs() function incorrectly references the local variable
`natInstances` instead of the class property `self.natInstances`. In the ref
path (Vpc.get), registerOutputs() is called before the local variable is
defined, but the class property is already set from ref.natInstances.
Fixes #6346
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 4d1e3c5 commit 8b60ff4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
| 693 | + | |
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
| |||
0 commit comments