Closed PhilippTreupel closed 4 years ago
You can't reference attributes of external resources like this:
'Fn::Join':
- ', '
- 'Fn::GetAtt': ['${self:provider.environment.HOSTED_ZONE_ID}', 'NameServers']
Try to just remove the HostedZoneNameservers
export in the outputs.yml
Many thanks, I didn't fully understand what the outputs are for. I changed the outputs.yml file to this:
# outputs.yml
Outputs:
CloudFrontDistributionId:
Description: CloudFront distribution id
Value:
Ref: CFDistribution
Now it works. Maybe the config above helps others who want to use the package with an existing hosted zone. Great package! It saves a lot of work, thanks a lot.
Glad it works now, and thanks for the positive feedback!
Hi, I am trying to use your library with an already existing Hosted Zone. Therefore I replaced the reference to the Hosted Zone in all files with the existing Hosted Zone ID and removed the Hosted Zone from the resources. Unfortunately something still doesn't work with cloudfront. Because I didn't fully understand some configuration files I can't tell where the error is. Below are all configuration files with my setup:
Configuration
Error Message:
Could you please help me modify the configuration to get it working?