I would like to know if there is a way to declare a AWS::Route53::RecordSet
in a CloudFormation config that points to the private IP address of the master node on a EMR cluster that is also defined in the same configuration?
The CloudFormation script should be self-explanatory:
rVPC:
Type: AWS::EC2::VPC
# ...
rMyEMRCluster:
Type: AWS::EMR::Cluster
# ...
rPrivateHostedZone:
Type: AWS::Route53::HostedZone
Properties:
Name: "example.com"
VPCs:
- VPCId: !Ref rVPC
VPCRegion: ${AWS::Region}
rMyRecordSet:
Type: AWS::Route53::RecordSet
Properties:
HostedZoneId: !Ref rPrivateHostedZone
Name: !Sub "sub.example.com"
Region: ${AWS::Region}
Type: A
ResourceRecords:
# TODO: How can I do something like this:
# - GetAtt rMyEMRCluster.MasterNodePrivateIpAddress