cdk-private-s3-hosting 0.0.8__py3-none-any.whl → 0.0.10__py3-none-any.whl

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.
@@ -60,6 +60,27 @@ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
60
60
  });
61
61
  ```
62
62
 
63
+ ### Specify the sub domain
64
+
65
+ You can specify the sub domain by setting the `subDomain` property.
66
+
67
+ ```python
68
+ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
69
+ domainName: 'cryer-nao-domain.com',
70
+ subDomain: 'sub',
71
+ });
72
+ ```
73
+
74
+ In this case, the S3 bucket name will be created with `${subDomain}.${domainName}`.
75
+
76
+ If `enablePrivateDns` is enabled, a private hosted zone will also be created for the `domainName` and an A record will be created from `${subDomain}.${domainName}` to the ALB DNS name.
77
+
78
+ You can retrieve `hoge.txt` on the root of the S3 bucket using the following command:
79
+
80
+ ```sh
81
+ curl http://sub.cryer-nao-domain.com/hoge.txt
82
+ ```
83
+
63
84
  ### Deploy the frontend assets
64
85
 
65
86
  You can deploy the frontend assets to the S3 bucket like below:
@@ -102,7 +123,7 @@ After deploying the stack, you can access the website using the `domainName` you
102
123
 
103
124
  **Note**: I also recommend to use [deploy-time-build](https://github.com/tmokmss/deploy-time-build) to build the frontend assets while deploying the stack.
104
125
 
105
- ## Setup DNS
126
+ ### Setup DNS
106
127
 
107
128
  This construct creates Route53 hosted zone and an A record for the domain name you specified by default.
108
129
 
@@ -118,7 +139,7 @@ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
118
139
  });
119
140
  ```
120
141
 
121
- ## TLS Certificate
142
+ ### TLS Certificate
122
143
 
123
144
  If you want to use HTTPS, you need to create a TLS certificate in ACM and pass it to the `certificate` property.
124
145
 
@@ -33,9 +33,9 @@ import constructs._jsii
33
33
 
34
34
  __jsii_assembly__ = jsii.JSIIAssembly.load(
35
35
  "cdk-private-s3-hosting",
36
- "0.0.8",
36
+ "0.0.10",
37
37
  __name__[0:-6],
38
- "cdk-private-s3-hosting@0.0.8.jsii.tgz",
38
+ "cdk-private-s3-hosting@0.0.10.jsii.tgz",
39
39
  )
40
40
 
41
41
  __all__ = [
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cdk-private-s3-hosting
3
- Version: 0.0.8
3
+ Version: 0.0.10
4
4
  Summary: CDK Construct for a private frontend hosting S3 bucket
5
5
  Home-page: https://github.com/badmintoncryer/cdk-private-s3-hosting.git
6
6
  Author: Kazuho CryerShinozuka<malaysia.cryer@gmail.com>
@@ -22,9 +22,9 @@ Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
23
  Requires-Dist: aws-cdk-lib<3.0.0,>=2.130.0
24
24
  Requires-Dist: constructs<11.0.0,>=10.0.5
25
- Requires-Dist: jsii<2.0.0,>=1.103.1
25
+ Requires-Dist: jsii<2.0.0,>=1.105.0
26
26
  Requires-Dist: publication>=0.0.3
27
- Requires-Dist: typeguard<5.0.0,>=2.13.3
27
+ Requires-Dist: typeguard<4.3.0,>=2.13.3
28
28
 
29
29
  # CDK Private S3 Hosting Construct
30
30
 
@@ -87,6 +87,27 @@ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
87
87
  });
88
88
  ```
89
89
 
90
+ ### Specify the sub domain
91
+
92
+ You can specify the sub domain by setting the `subDomain` property.
93
+
94
+ ```python
95
+ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
96
+ domainName: 'cryer-nao-domain.com',
97
+ subDomain: 'sub',
98
+ });
99
+ ```
100
+
101
+ In this case, the S3 bucket name will be created with `${subDomain}.${domainName}`.
102
+
103
+ If `enablePrivateDns` is enabled, a private hosted zone will also be created for the `domainName` and an A record will be created from `${subDomain}.${domainName}` to the ALB DNS name.
104
+
105
+ You can retrieve `hoge.txt` on the root of the S3 bucket using the following command:
106
+
107
+ ```sh
108
+ curl http://sub.cryer-nao-domain.com/hoge.txt
109
+ ```
110
+
90
111
  ### Deploy the frontend assets
91
112
 
92
113
  You can deploy the frontend assets to the S3 bucket like below:
@@ -129,7 +150,7 @@ After deploying the stack, you can access the website using the `domainName` you
129
150
 
130
151
  **Note**: I also recommend to use [deploy-time-build](https://github.com/tmokmss/deploy-time-build) to build the frontend assets while deploying the stack.
131
152
 
132
- ## Setup DNS
153
+ ### Setup DNS
133
154
 
134
155
  This construct creates Route53 hosted zone and an A record for the domain name you specified by default.
135
156
 
@@ -145,7 +166,7 @@ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
145
166
  });
146
167
  ```
147
168
 
148
- ## TLS Certificate
169
+ ### TLS Certificate
149
170
 
150
171
  If you want to use HTTPS, you need to create a TLS certificate in ACM and pass it to the `certificate` property.
151
172
 
@@ -0,0 +1,9 @@
1
+ cdk-private-s3-hosting/__init__.py,sha256=ZZ6qVul1MdRVdBMrXDzttbSWlees5GJM1x55AjsQry4,20893
2
+ cdk-private-s3-hosting/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ cdk-private-s3-hosting/_jsii/__init__.py,sha256=aW1l52fTg96JyOpV6KJJRlod3dPA7s2MF0MQJTfZ3KU,1470
4
+ cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.10.jsii.tgz,sha256=t9Ti_aK_qdHkPwa01fKVMj5pp474GdBsw4T6hLY-0Gw,46720
5
+ cdk_private_s3_hosting-0.0.10.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
+ cdk_private_s3_hosting-0.0.10.dist-info/METADATA,sha256=rLJuLYC4G7WroT5MsczBp7HhxDOgjfPDaLYLkfz_k10,7248
7
+ cdk_private_s3_hosting-0.0.10.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
8
+ cdk_private_s3_hosting-0.0.10.dist-info/top_level.txt,sha256=Garilimgavjx7-oTth2AD47uG-twwl6dTXCfLYQ1lqY,23
9
+ cdk_private_s3_hosting-0.0.10.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.44.0)
2
+ Generator: bdist_wheel (0.45.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,9 +0,0 @@
1
- cdk-private-s3-hosting/__init__.py,sha256=i5E_EGoXa6S_9qb_-sGP-uf_EQ2_LVFy0FyrorTQnYY,20228
2
- cdk-private-s3-hosting/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- cdk-private-s3-hosting/_jsii/__init__.py,sha256=bEoh0LKQ04lJintrmCDLMb42GpUrVpQZeU9yD4-Ms-w,1468
4
- cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.8.jsii.tgz,sha256=0RIoopJquIjwOF_V6MekNDj5ugvo7YV3IFOmA7kzCTQ,46539
5
- cdk_private_s3_hosting-0.0.8.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
6
- cdk_private_s3_hosting-0.0.8.dist-info/METADATA,sha256=C1RckAEP7DJW0VTkAqgiW12COITeXU_i7DxXHXzM3eE,6582
7
- cdk_private_s3_hosting-0.0.8.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
8
- cdk_private_s3_hosting-0.0.8.dist-info/top_level.txt,sha256=Garilimgavjx7-oTth2AD47uG-twwl6dTXCfLYQ1lqY,23
9
- cdk_private_s3_hosting-0.0.8.dist-info/RECORD,,