Skip to content

Commit

Permalink
Amend !Ref to HostedZone with AWSAccount.Resources (#105)
Browse files Browse the repository at this point in the history
I was having a problem when running this example with multiple accounts with a subdomain. After investigation, I think we need to reference the hostedZone with `!GetAtt AWSAccount.Resources.HostedZone` in order to avoid this issue `validated failed. reason: Found multiple targets for reference to HostedZone`
  • Loading branch information
saferrer authored Sep 25, 2020
1 parent 3ea77f9 commit 66a64d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/templates/subdomains.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Resources:
Properties:
Name: !Sub '${resourcePrefix}-domains-hosted-zone-id'
Type: String
Value: !Ref HostedZone
Value: !GetAtt AWSAccount.Resources.HostedZone

HostedZoneNameParam:
Type: AWS::SSM::Parameter
Expand Down

0 comments on commit 66a64d2

Please sign in to comment.