cdk-private-s3-hosting 0.0.3__py3-none-any.whl → 0.0.4__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.
- cdk-private-s3-hosting/__init__.py +18 -0
- cdk-private-s3-hosting/_jsii/__init__.py +2 -2
- cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.4.jsii.tgz +0 -0
- {cdk_private_s3_hosting-0.0.3.dist-info → cdk_private_s3_hosting-0.0.4.dist-info}/METADATA +19 -1
- cdk_private_s3_hosting-0.0.4.dist-info/RECORD +9 -0
- cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.3.jsii.tgz +0 -0
- cdk_private_s3_hosting-0.0.3.dist-info/RECORD +0 -9
- {cdk_private_s3_hosting-0.0.3.dist-info → cdk_private_s3_hosting-0.0.4.dist-info}/LICENSE +0 -0
- {cdk_private_s3_hosting-0.0.3.dist-info → cdk_private_s3_hosting-0.0.4.dist-info}/WHEEL +0 -0
- {cdk_private_s3_hosting-0.0.3.dist-info → cdk_private_s3_hosting-0.0.4.dist-info}/top_level.txt +0 -0
@@ -87,6 +87,24 @@ After deploying the stack, you can access the website using the `domainName` you
|
|
87
87
|
```
|
88
88
|
|
89
89
|
**Note**: All access to the path pattern `*/` will be redirected to `/index.html`. Therefore, it will function correctly even when the path is set on the frontend and the page is reloaded.
|
90
|
+
|
91
|
+
## TLS Certificate
|
92
|
+
|
93
|
+
If you want to use HTTPS, you need to create a TLS certificate in ACM and pass it to the `certificate` property.
|
94
|
+
|
95
|
+
```python
|
96
|
+
import * as acm from 'aws-cdk-lib/aws-certificatemanager';
|
97
|
+
import { PrivateS3Hosting } from 'cdk-private-s3-hosting';
|
98
|
+
|
99
|
+
declare const certificate: acm.ICertificate;
|
100
|
+
|
101
|
+
const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
102
|
+
domainName: 'cryer-nao-domain.com',
|
103
|
+
certificate,
|
104
|
+
});
|
105
|
+
```
|
106
|
+
|
107
|
+
Of course, specified domain name (`domainName` and `subDomain`) must be the same as the domain name of the certificate.
|
90
108
|
'''
|
91
109
|
from pkgutil import extend_path
|
92
110
|
__path__ = extend_path(__path__, __name__)
|
@@ -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.
|
36
|
+
"0.0.4",
|
37
37
|
__name__[0:-6],
|
38
|
-
"cdk-private-s3-hosting@0.0.
|
38
|
+
"cdk-private-s3-hosting@0.0.4.jsii.tgz",
|
39
39
|
)
|
40
40
|
|
41
41
|
__all__ = [
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: cdk-private-s3-hosting
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.4
|
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>
|
@@ -114,3 +114,21 @@ After deploying the stack, you can access the website using the `domainName` you
|
|
114
114
|
```
|
115
115
|
|
116
116
|
**Note**: All access to the path pattern `*/` will be redirected to `/index.html`. Therefore, it will function correctly even when the path is set on the frontend and the page is reloaded.
|
117
|
+
|
118
|
+
## TLS Certificate
|
119
|
+
|
120
|
+
If you want to use HTTPS, you need to create a TLS certificate in ACM and pass it to the `certificate` property.
|
121
|
+
|
122
|
+
```python
|
123
|
+
import * as acm from 'aws-cdk-lib/aws-certificatemanager';
|
124
|
+
import { PrivateS3Hosting } from 'cdk-private-s3-hosting';
|
125
|
+
|
126
|
+
declare const certificate: acm.ICertificate;
|
127
|
+
|
128
|
+
const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
129
|
+
domainName: 'cryer-nao-domain.com',
|
130
|
+
certificate,
|
131
|
+
});
|
132
|
+
```
|
133
|
+
|
134
|
+
Of course, specified domain name (`domainName` and `subDomain`) must be the same as the domain name of the certificate.
|
@@ -0,0 +1,9 @@
|
|
1
|
+
cdk-private-s3-hosting/__init__.py,sha256=3ERjho8qI7NtxMH2L4NE3WYgjMcXHeBzh3JEyHenS9U,19200
|
2
|
+
cdk-private-s3-hosting/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
3
|
+
cdk-private-s3-hosting/_jsii/__init__.py,sha256=hf0yF-gBL9sughSNWDgfzwkK-dTwJ0ZjarpmubHr_kU,1468
|
4
|
+
cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.4.jsii.tgz,sha256=GimpoP-7smYL1XXG0_mqETu7pxlnNY8ujEJFWIQD3Gc,45929
|
5
|
+
cdk_private_s3_hosting-0.0.4.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
6
|
+
cdk_private_s3_hosting-0.0.4.dist-info/METADATA,sha256=Qiv7w5nWdEegSH0PVdPmrU0m1fvC7_aP-ILBLlugLEU,5554
|
7
|
+
cdk_private_s3_hosting-0.0.4.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
8
|
+
cdk_private_s3_hosting-0.0.4.dist-info/top_level.txt,sha256=Garilimgavjx7-oTth2AD47uG-twwl6dTXCfLYQ1lqY,23
|
9
|
+
cdk_private_s3_hosting-0.0.4.dist-info/RECORD,,
|
Binary file
|
@@ -1,9 +0,0 @@
|
|
1
|
-
cdk-private-s3-hosting/__init__.py,sha256=KVYIsrHhVTui9cHN0bWH-gcfJ-qoHdpEGdN433NQKE0,18634
|
2
|
-
cdk-private-s3-hosting/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
3
|
-
cdk-private-s3-hosting/_jsii/__init__.py,sha256=BMn_jI-Ic0syX1-JugApDXJ3P3QavzZRUk27iKwrfRc,1468
|
4
|
-
cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.3.jsii.tgz,sha256=ptyZUvyql5Il-9iGuLvtUNGAQ0XeQBla2TQhRaa6PWk,45621
|
5
|
-
cdk_private_s3_hosting-0.0.3.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
6
|
-
cdk_private_s3_hosting-0.0.3.dist-info/METADATA,sha256=vZfnssKY6BdOYA5ZVL9JyYVK_Jwe_lWXWILIGT8gFik,4988
|
7
|
-
cdk_private_s3_hosting-0.0.3.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
8
|
-
cdk_private_s3_hosting-0.0.3.dist-info/top_level.txt,sha256=Garilimgavjx7-oTth2AD47uG-twwl6dTXCfLYQ1lqY,23
|
9
|
-
cdk_private_s3_hosting-0.0.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{cdk_private_s3_hosting-0.0.3.dist-info → cdk_private_s3_hosting-0.0.4.dist-info}/top_level.txt
RENAMED
File without changes
|