@studion/infra-code-blocks 2.0.0-alpha.1 → 2.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/dist/components/cloudfront/index.js +1 -1
- package/dist/components/cloudfront/lb-cache-strategy.js +1 -1
- package/dist/components/cloudfront/s3-cache-strategy.js +1 -1
- package/dist/components/static-site/index.d.ts +1 -0
- package/dist/components/static-site/index.d.ts.map +1 -1
- package/dist/components/static-site/index.js +3 -3
- package/dist/components/static-site/s3-assets.d.ts +1 -0
- package/dist/components/static-site/s3-assets.d.ts.map +1 -1
- package/dist/components/static-site/s3-assets.js +5 -5
- package/dist/components/web-server/index.d.ts.map +1 -1
- package/dist/components/web-server/index.js +1 -1
- package/dist/components/web-server/load-balancer.js +1 -1
- package/package.json +3 -2
|
@@ -9,7 +9,7 @@ const s3_cache_strategy_1 = require("./s3-cache-strategy");
|
|
|
9
9
|
const lb_cache_strategy_1 = require("./lb-cache-strategy");
|
|
10
10
|
class CloudFront extends pulumi.ComponentResource {
|
|
11
11
|
constructor(name, args, opts = {}) {
|
|
12
|
-
super('studion:cloudfront:CloudFront', name,
|
|
12
|
+
super('studion:cloudfront:CloudFront', name, {}, opts);
|
|
13
13
|
this.name = name;
|
|
14
14
|
const { behaviors, domain, certificate, hostedZoneId, tags } = args;
|
|
15
15
|
const hasCustomDomain = !!domain || !!certificate;
|
|
@@ -5,7 +5,7 @@ const aws = require("@pulumi/aws");
|
|
|
5
5
|
const pulumi = require("@pulumi/pulumi");
|
|
6
6
|
class LbCacheStrategy extends pulumi.ComponentResource {
|
|
7
7
|
constructor(name, args, opts = {}) {
|
|
8
|
-
super('studion:cloudfront:LbCacheStrategy', name,
|
|
8
|
+
super('studion:cloudfront:LbCacheStrategy', name, {}, opts);
|
|
9
9
|
this.name = name;
|
|
10
10
|
const { pathPattern, loadBalancer } = args;
|
|
11
11
|
this.pathPattern = pathPattern;
|
|
@@ -5,7 +5,7 @@ const aws = require("@pulumi/aws");
|
|
|
5
5
|
const pulumi = require("@pulumi/pulumi");
|
|
6
6
|
class S3CacheStrategy extends pulumi.ComponentResource {
|
|
7
7
|
constructor(name, args, opts = {}) {
|
|
8
|
-
super('studion:cloudfront:S3CacheStrategy', name,
|
|
8
|
+
super('studion:cloudfront:S3CacheStrategy', name, {}, opts);
|
|
9
9
|
this.name = name;
|
|
10
10
|
const { pathPattern, bucket, cacheTtl } = args;
|
|
11
11
|
this.pathPattern = pathPattern;
|
|
@@ -23,6 +23,7 @@ export declare namespace StaticSite {
|
|
|
23
23
|
domain?: pulumi.Input<string>;
|
|
24
24
|
certificate?: pulumi.Input<aws.acm.Certificate>;
|
|
25
25
|
hostedZoneId: pulumi.Input<string>;
|
|
26
|
+
bucketPrefix?: pulumi.Input<string>;
|
|
26
27
|
indexDocument?: pulumi.Input<string>;
|
|
27
28
|
errorDocument?: pulumi.Input<string>;
|
|
28
29
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/static-site/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,YAAY,EAAqB,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,yBAAiB,UAAU,CAAC;IAC1B,KAAY,SAAS,GAAG;QACtB,WAAW,EAAE,MAAM,CAAC;QACpB;;;;;;;;;;WAUG;QACH,GAAG,EAAE,YAAY,CAAC;KACnB,CAAC;IAEF,KAAY,IAAI,GAAG;QAKjB,MAAM,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAK9B,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAA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,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAChD,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACnC,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACpC,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACrC,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACrC;;;;;WAKG;QACH,UAAU,CAAC,EAAE,SAAS,EAAE,CAAC;QACzB,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;YAClB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;SACrC,CAAC,CAAC;KACJ,CAAC;CACH;AAED,qBAAa,UAAW,SAAQ,MAAM,CAAC,iBAAiB;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,QAAQ,CAAC;IACnB,EAAE,EAAE,UAAU,CAAC;gBAGb,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,UAAU,CAAC,IAAI,EACrB,IAAI,GAAE,MAAM,CAAC,wBAA6B;IA8C5C,OAAO,CAAC,sBAAsB;CAsB/B"}
|
|
@@ -7,13 +7,13 @@ const s3_assets_1 = require("./s3-assets");
|
|
|
7
7
|
const cloudfront_1 = require("../cloudfront");
|
|
8
8
|
class StaticSite extends pulumi.ComponentResource {
|
|
9
9
|
constructor(name, args, opts = {}) {
|
|
10
|
-
super('studion:static-site:StaticSite', name,
|
|
11
|
-
const { domain, hostedZoneId, certificate, indexDocument, errorDocument, cacheRules, tags, } = args;
|
|
10
|
+
super('studion:static-site:StaticSite', name, {}, Object.assign(Object.assign({}, opts), { aliases: [...(opts.aliases || []), { type: 'studion:StaticSite' }] }));
|
|
11
|
+
const { domain, hostedZoneId, certificate, bucketPrefix, indexDocument, errorDocument, cacheRules, tags, } = args;
|
|
12
12
|
if (!domain && !certificate) {
|
|
13
13
|
throw new Error('Provide either domain or certificate, or both');
|
|
14
14
|
}
|
|
15
15
|
this.name = name;
|
|
16
|
-
this.s3Assets = new s3_assets_1.S3Assets(`${this.name}-s3-assets`, { indexDocument, errorDocument, tags }, { parent: this });
|
|
16
|
+
this.s3Assets = new s3_assets_1.S3Assets(`${this.name}-s3-assets`, { bucketPrefix, indexDocument, errorDocument, tags }, { parent: this });
|
|
17
17
|
this.cf = new cloudfront_1.CloudFront(`${this.name}-cf`, {
|
|
18
18
|
behaviors: this.getCloudFrontBehaviors(cacheRules),
|
|
19
19
|
domain,
|
|
@@ -2,6 +2,7 @@ import * as pulumi from '@pulumi/pulumi';
|
|
|
2
2
|
import * as aws from '@pulumi/aws';
|
|
3
3
|
export declare namespace S3Assets {
|
|
4
4
|
type Args = {
|
|
5
|
+
bucketPrefix?: pulumi.Input<string>;
|
|
5
6
|
indexDocument?: pulumi.Input<string>;
|
|
6
7
|
errorDocument?: pulumi.Input<string>;
|
|
7
8
|
tags?: pulumi.Input<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"s3-assets.d.ts","sourceRoot":"","sources":["../../../src/components/static-site/s3-assets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,GAAG,MAAM,aAAa,CAAC;AAGnC,yBAAiB,QAAQ,CAAC;IACxB,KAAY,IAAI,GAAG;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACrC,aAAa,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACrC,IAAI,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC;YAClB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;SACrC,CAAC,CAAC;KACJ,CA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;CAgC5B"}
|
|
@@ -6,10 +6,10 @@ const aws = require("@pulumi/aws");
|
|
|
6
6
|
const common_tags_1 = require("../../shared/common-tags");
|
|
7
7
|
class S3Assets extends pulumi.ComponentResource {
|
|
8
8
|
constructor(name, args, opts = {}) {
|
|
9
|
-
super('studion:static-site:S3Assets', name,
|
|
9
|
+
super('studion:static-site:S3Assets', name, {}, opts);
|
|
10
10
|
this.name = name;
|
|
11
|
-
const { indexDocument = 'index.html', errorDocument = 'index.html', tags, } = args;
|
|
12
|
-
const [bucket, websiteConfig] = this.createWebsiteBucket(indexDocument, errorDocument, tags);
|
|
11
|
+
const { bucketPrefix = `${this.name}-`, indexDocument = 'index.html', errorDocument = 'index.html', tags, } = args;
|
|
12
|
+
const [bucket, websiteConfig] = this.createWebsiteBucket(bucketPrefix, indexDocument, errorDocument, tags);
|
|
13
13
|
this.bucket = bucket;
|
|
14
14
|
this.websiteConfig = websiteConfig;
|
|
15
15
|
}
|
|
@@ -27,9 +27,9 @@ class S3Assets extends pulumi.ComponentResource {
|
|
|
27
27
|
policy: policy.json,
|
|
28
28
|
}, { parent: this, dependsOn: [bucketPublicAccessBlock] });
|
|
29
29
|
}
|
|
30
|
-
createWebsiteBucket(indexDocument, errorDocument, tags) {
|
|
30
|
+
createWebsiteBucket(bucketPrefix, indexDocument, errorDocument, tags) {
|
|
31
31
|
const bucket = new aws.s3.Bucket(`${this.name}-bucket`, {
|
|
32
|
-
bucketPrefix
|
|
32
|
+
bucketPrefix,
|
|
33
33
|
tags: Object.assign(Object.assign({}, common_tags_1.commonTags), tags),
|
|
34
34
|
}, { parent: this });
|
|
35
35
|
const config = new aws.s3.BucketWebsiteConfiguration(`${this.name}-bucket-website-config`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/web-server/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,GAAG,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AAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;gBAG/C,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,SAAS,CAAC,IAAI,EACpB,IAAI,GAAE,MAAM,CAAC,wBAA6B;IAqE5C,OAAO,CAAC,UAAU;IAclB,OAAO,CAAC,iBAAiB;IAiBzB,OAAO,CAAC,oBAAoB;IAc5B,OAAO,CAAC,yBAAyB;IAoBjC,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,wBAAwB;IAUhC,OAAO,CAAC,oBAAoB;IAiB5B,OAAO,CAAC,mBAAmB;IA8B3B,OAAO,CAAC,gBAAgB;IAkDxB,OAAO,CAAC,gBAAgB;CA+BzB"}
|
|
@@ -10,7 +10,7 @@ const load_balancer_1 = require("./load-balancer");
|
|
|
10
10
|
class WebServer extends pulumi.ComponentResource {
|
|
11
11
|
constructor(name, args, opts = {}) {
|
|
12
12
|
var _a;
|
|
13
|
-
super('studion:web-server:WebServer', name,
|
|
13
|
+
super('studion:web-server:WebServer', name, {}, Object.assign(Object.assign({}, opts), { aliases: [...(opts.aliases || []), { type: 'studion:WebServer' }] }));
|
|
14
14
|
const { vpc, domain, hostedZoneId, certificate } = args;
|
|
15
15
|
const hasCustomDomain = !!domain || !!certificate;
|
|
16
16
|
if (hasCustomDomain && !hostedZoneId) {
|
|
@@ -34,7 +34,7 @@ const defaults = {
|
|
|
34
34
|
};
|
|
35
35
|
class WebServerLoadBalancer extends pulumi.ComponentResource {
|
|
36
36
|
constructor(name, args, opts = {}) {
|
|
37
|
-
super('studion:web-server:WebServerLoadBalancer', name,
|
|
37
|
+
super('studion:web-server:WebServerLoadBalancer', name, {}, opts);
|
|
38
38
|
this.name = name;
|
|
39
39
|
const vpc = pulumi.output(args.vpc);
|
|
40
40
|
const argsWithDefaults = (0, merge_with_defaults_1.mergeWithDefaults)(defaults, args);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studion/infra-code-blocks",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.2",
|
|
4
4
|
"description": "Studion common infra components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"infrastructure",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"nanospinner": "^1.2.2",
|
|
74
74
|
"pathe": "^2.0.3",
|
|
75
75
|
"prettier": "^3.4.2",
|
|
76
|
-
"release-it": "^
|
|
76
|
+
"release-it": "^19.2.4",
|
|
77
77
|
"tstyche": "^4.0.0-beta.9",
|
|
78
78
|
"tsx": "^4.21.0",
|
|
79
79
|
"typescript": "^5.7.3",
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"overrides": {
|
|
83
83
|
"@pulumi/pulumi": {
|
|
84
84
|
"glob": "10.5.0",
|
|
85
|
+
"minimatch": "10.2.2",
|
|
85
86
|
"tar": "7.5.9"
|
|
86
87
|
},
|
|
87
88
|
"@aws-sdk/core": {
|