cdk-private-s3-hosting 0.0.8__tar.gz → 0.0.9__tar.gz
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-0.0.8/src/cdk_private_s3_hosting.egg-info → cdk_private_s3_hosting-0.0.9}/PKG-INFO +26 -5
- {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/README.md +23 -2
- {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/setup.py +4 -4
- {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/src/cdk-private-s3-hosting/__init__.py +23 -2
- {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/src/cdk-private-s3-hosting/_jsii/__init__.py +2 -2
- cdk_private_s3_hosting-0.0.9/src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.9.jsii.tgz +0 -0
- {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9/src/cdk_private_s3_hosting.egg-info}/PKG-INFO +26 -5
- {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/src/cdk_private_s3_hosting.egg-info/SOURCES.txt +1 -1
- {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/src/cdk_private_s3_hosting.egg-info/requires.txt +2 -2
- cdk_private_s3_hosting-0.0.8/src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.8.jsii.tgz +0 -0
- {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/LICENSE +0 -0
- {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/MANIFEST.in +0 -0
- {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/pyproject.toml +0 -0
- {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/setup.cfg +0 -0
- {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/src/cdk-private-s3-hosting/py.typed +0 -0
- {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/src/cdk_private_s3_hosting.egg-info/dependency_links.txt +0 -0
- {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/src/cdk_private_s3_hosting.egg-info/top_level.txt +0 -0
@@ -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.9
|
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.
|
25
|
+
Requires-Dist: jsii<2.0.0,>=1.105.0
|
26
26
|
Requires-Dist: publication>=0.0.3
|
27
|
-
Requires-Dist: typeguard<
|
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
|
-
|
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
|
-
|
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
|
|
@@ -59,6 +59,27 @@ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
|
59
59
|
});
|
60
60
|
```
|
61
61
|
|
62
|
+
### Specify the sub domain
|
63
|
+
|
64
|
+
You can specify the sub domain by setting the `subDomain` property.
|
65
|
+
|
66
|
+
```python
|
67
|
+
const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
68
|
+
domainName: 'cryer-nao-domain.com',
|
69
|
+
subDomain: 'sub',
|
70
|
+
});
|
71
|
+
```
|
72
|
+
|
73
|
+
In this case, the S3 bucket name will be created with `${subDomain}.${domainName}`.
|
74
|
+
|
75
|
+
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.
|
76
|
+
|
77
|
+
You can retrieve `hoge.txt` on the root of the S3 bucket using the following command:
|
78
|
+
|
79
|
+
```sh
|
80
|
+
curl http://sub.cryer-nao-domain.com/hoge.txt
|
81
|
+
```
|
82
|
+
|
62
83
|
### Deploy the frontend assets
|
63
84
|
|
64
85
|
You can deploy the frontend assets to the S3 bucket like below:
|
@@ -101,7 +122,7 @@ After deploying the stack, you can access the website using the `domainName` you
|
|
101
122
|
|
102
123
|
**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.
|
103
124
|
|
104
|
-
|
125
|
+
### Setup DNS
|
105
126
|
|
106
127
|
This construct creates Route53 hosted zone and an A record for the domain name you specified by default.
|
107
128
|
|
@@ -117,7 +138,7 @@ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
|
117
138
|
});
|
118
139
|
```
|
119
140
|
|
120
|
-
|
141
|
+
### TLS Certificate
|
121
142
|
|
122
143
|
If you want to use HTTPS, you need to create a TLS certificate in ACM and pass it to the `certificate` property.
|
123
144
|
|
@@ -5,7 +5,7 @@ kwargs = json.loads(
|
|
5
5
|
"""
|
6
6
|
{
|
7
7
|
"name": "cdk-private-s3-hosting",
|
8
|
-
"version": "0.0.
|
8
|
+
"version": "0.0.9",
|
9
9
|
"description": "CDK Construct for a private frontend hosting S3 bucket",
|
10
10
|
"license": "Apache-2.0",
|
11
11
|
"url": "https://github.com/badmintoncryer/cdk-private-s3-hosting.git",
|
@@ -26,7 +26,7 @@ kwargs = json.loads(
|
|
26
26
|
],
|
27
27
|
"package_data": {
|
28
28
|
"cdk-private-s3-hosting._jsii": [
|
29
|
-
"cdk-private-s3-hosting@0.0.
|
29
|
+
"cdk-private-s3-hosting@0.0.9.jsii.tgz"
|
30
30
|
],
|
31
31
|
"cdk-private-s3-hosting": [
|
32
32
|
"py.typed"
|
@@ -36,9 +36,9 @@ kwargs = json.loads(
|
|
36
36
|
"install_requires": [
|
37
37
|
"aws-cdk-lib>=2.130.0, <3.0.0",
|
38
38
|
"constructs>=10.0.5, <11.0.0",
|
39
|
-
"jsii>=1.
|
39
|
+
"jsii>=1.105.0, <2.0.0",
|
40
40
|
"publication>=0.0.3",
|
41
|
-
"typeguard>=2.13.3,<
|
41
|
+
"typeguard>=2.13.3,<4.3.0"
|
42
42
|
],
|
43
43
|
"classifiers": [
|
44
44
|
"Intended Audience :: Developers",
|
{cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/src/cdk-private-s3-hosting/__init__.py
RENAMED
@@ -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
|
-
|
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
|
-
|
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.
|
36
|
+
"0.0.9",
|
37
37
|
__name__[0:-6],
|
38
|
-
"cdk-private-s3-hosting@0.0.
|
38
|
+
"cdk-private-s3-hosting@0.0.9.jsii.tgz",
|
39
39
|
)
|
40
40
|
|
41
41
|
__all__ = [
|
cdk_private_s3_hosting-0.0.9/src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.9.jsii.tgz
ADDED
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.9
|
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.
|
25
|
+
Requires-Dist: jsii<2.0.0,>=1.105.0
|
26
26
|
Requires-Dist: publication>=0.0.3
|
27
|
-
Requires-Dist: typeguard<
|
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
|
-
|
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
|
-
|
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
|
|
@@ -6,7 +6,7 @@ setup.py
|
|
6
6
|
src/cdk-private-s3-hosting/__init__.py
|
7
7
|
src/cdk-private-s3-hosting/py.typed
|
8
8
|
src/cdk-private-s3-hosting/_jsii/__init__.py
|
9
|
-
src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.
|
9
|
+
src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.9.jsii.tgz
|
10
10
|
src/cdk_private_s3_hosting.egg-info/PKG-INFO
|
11
11
|
src/cdk_private_s3_hosting.egg-info/SOURCES.txt
|
12
12
|
src/cdk_private_s3_hosting.egg-info/dependency_links.txt
|
cdk_private_s3_hosting-0.0.8/src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.8.jsii.tgz
DELETED
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.9}/src/cdk-private-s3-hosting/py.typed
RENAMED
File without changes
|
File without changes
|
File without changes
|