cdk-private-s3-hosting 0.0.8__tar.gz → 0.0.10__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.
Files changed (17) hide show
  1. {cdk_private_s3_hosting-0.0.8/src/cdk_private_s3_hosting.egg-info → cdk_private_s3_hosting-0.0.10}/PKG-INFO +26 -5
  2. {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.10}/README.md +23 -2
  3. {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.10}/setup.py +4 -4
  4. {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.10}/src/cdk-private-s3-hosting/__init__.py +23 -2
  5. {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.10}/src/cdk-private-s3-hosting/_jsii/__init__.py +2 -2
  6. cdk_private_s3_hosting-0.0.10/src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.10.jsii.tgz +0 -0
  7. {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.10/src/cdk_private_s3_hosting.egg-info}/PKG-INFO +26 -5
  8. {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.10}/src/cdk_private_s3_hosting.egg-info/SOURCES.txt +1 -1
  9. {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.10}/src/cdk_private_s3_hosting.egg-info/requires.txt +2 -2
  10. cdk_private_s3_hosting-0.0.8/src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.8.jsii.tgz +0 -0
  11. {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.10}/LICENSE +0 -0
  12. {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.10}/MANIFEST.in +0 -0
  13. {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.10}/pyproject.toml +0 -0
  14. {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.10}/setup.cfg +0 -0
  15. {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.10}/src/cdk-private-s3-hosting/py.typed +0 -0
  16. {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.10}/src/cdk_private_s3_hosting.egg-info/dependency_links.txt +0 -0
  17. {cdk_private_s3_hosting-0.0.8 → cdk_private_s3_hosting-0.0.10}/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.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
 
@@ -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
- ## Setup DNS
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
- ## TLS Certificate
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",
8
+ "version": "0.0.10",
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.8.jsii.tgz"
29
+ "cdk-private-s3-hosting@0.0.10.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.103.1, <2.0.0",
39
+ "jsii>=1.105.0, <2.0.0",
40
40
  "publication>=0.0.3",
41
- "typeguard>=2.13.3,<5.0.0"
41
+ "typeguard>=2.13.3,<4.3.0"
42
42
  ],
43
43
  "classifiers": [
44
44
  "Intended Audience :: Developers",
@@ -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
 
@@ -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.8.jsii.tgz
9
+ src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.10.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
@@ -1,5 +1,5 @@
1
1
  aws-cdk-lib<3.0.0,>=2.130.0
2
2
  constructs<11.0.0,>=10.0.5
3
- jsii<2.0.0,>=1.103.1
3
+ jsii<2.0.0,>=1.105.0
4
4
  publication>=0.0.3
5
- typeguard<5.0.0,>=2.13.3
5
+ typeguard<4.3.0,>=2.13.3