diff --git a/spec/website_alias_spec.rb b/spec/website_alias_spec.rb index c931836..adee028 100644 --- a/spec/website_alias_spec.rb +++ b/spec/website_alias_spec.rb @@ -33,7 +33,7 @@ end it "to have property AliasTarget" do - expect(resource["Properties"]["AliasTarget"]).to eq({"DNSName"=>"s3-website-ap-southeast-2.amazonaws.com.", "HostedZoneId"=>"Z1WCIGYICN2BYD"}) + expect(resource["Properties"]["AliasTarget"]).to eq({"DNSName"=>{"Fn::Sub"=>"s3-website-${AWS::Region}.amazonaws.com."}, "HostedZoneId"=>{"Fn::FindInMap"=>["S3AliasHostedZone", {"Ref"=>"AWS::Region"}, "HostedZoneId"]}}) end end