Skip to content

Commit a2eb8d5

Browse files
author
Lachlan Donald
committed
Fix VpcId output when VPC provided
1 parent b4a9b35 commit a2eb8d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/aws-stack.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,8 @@ Parameters:
384384

385385
Outputs:
386386
VpcId:
387-
Value: !Ref Vpc
387+
Value:
388+
!If [ CreateVpcResources, !Ref Vpc, !Ref VpcId ]
388389
Export:
389390
Name: !Sub '${AWS::StackName}-VpcId'
390391

0 commit comments

Comments
 (0)