@resistdesign/voltra 3.0.0-alpha.1 → 3.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resistdesign/voltra",
3
- "version": "3.0.0-alpha.1",
3
+ "version": "3.0.0-alpha.2",
4
4
  "description": "With our powers combined!",
5
5
  "homepage": "https://voltra.app",
6
6
  "repository": "git@github.com:resistdesign/voltra.git",
@@ -9,7 +9,7 @@ const utils_1 = require("../utils");
9
9
  exports.addCDN = (0, utils_1.createResourcePack)(({ id, hostedZoneId, domainName, certificateArn, fileStorageId, }) => {
10
10
  return {
11
11
  Resources: {
12
- [`${id}CloudFront`]: {
12
+ [id]: {
13
13
  Type: "AWS::CloudFront::Distribution",
14
14
  DependsOn: fileStorageId,
15
15
  Properties: {
@@ -81,7 +81,7 @@ exports.addCDN = (0, utils_1.createResourcePack)(({ id, hostedZoneId, domainName
81
81
  },
82
82
  [`${id}Route53Record`]: {
83
83
  Type: "AWS::Route53::RecordSet",
84
- DependsOn: [`${id}CloudFront`],
84
+ DependsOn: [id],
85
85
  Properties: {
86
86
  HostedZoneId: hostedZoneId,
87
87
  Type: "A",
@@ -100,7 +100,7 @@ exports.addCDN = (0, utils_1.createResourcePack)(({ id, hostedZoneId, domainName
100
100
  "${DomainName}.",
101
101
  {
102
102
  DomainName: {
103
- "Fn::GetAtt": [`${id}CloudFront`, "DomainName"],
103
+ "Fn::GetAtt": [id, "DomainName"],
104
104
  },
105
105
  },
106
106
  ],