Open a2ush opened 1 month ago
Resources:
...
NLB:
Type: AWS::ElasticLoadBalancingV2::LoadBalancer
Properties:
Scheme: "internal"
# Subnets:
# - !Ref Subnet1
# - !Ref Subnet2
If you want to put the ELB icon into the VPC, you can describe it as the following;
Resources:
...
NLB:
Type: AWS::ElasticLoadBalancingV2::LoadBalancer
Properties:
Scheme: "internal"
VpcId: !Ref VPC1
In CloudFormation, Resource type AWS::ElasticLoadBalancingV2::LoadBalancer
does not have "VpcId" Property[1].
However, since awsdac just looks at dependencies based on !Ref or DependsOn, there is no problem in assigning non-existent properties to resources.
Issue detail
Target resource is not drawn when related to resources in the same layer.
Reproduce process
Subnets are same layer in this template. In this case, the ELB is a child resource of the two subnets, and then it is not rendered.
Yaml template