Closed thorfi closed 8 months ago
Hi @thorfi
Thanks for reporting this. If the resolution of x-vpc::VpcID
is not working then I need to look into that.
There is a post-processing function that would make the modules go over properties of any resource and replace the value with the right thing.
Have you checked whether this works both when you create and lookup the VPC by any chance?
I have tested with the following (creates the VPC)
x-cloudmap: # ecscomposex
PrivateZone:
ZoneName: foo.local
And I get
Resources:
PrivateZone:
Properties:
Name: foo.local
Tags:
- Key: CreatedByComposeX
Value: true
- Key: compose-x:version
Value: 0.23.27-rc2
Vpc:
Ref: VpcId
Type: AWS::ServiceDiscovery::PrivateDnsNamespace
However, I do see the bug when using x-vpc.Lookup
Can you just confirm for me that you are getting that error when doing x-vpc.Lookup
please?
Bug When using x-cloud: with a private namespace, the resulting Resources: entry generated contains
Vpc: x-vpc:VpcId
It should use
Vpc: Ref: VpcId
instead.Steps to reproduce the behavior:
Expected behavior
Logs Not applicable
Desktop (please complete the following information):