cdk-private-s3-hosting 0.0.3__tar.gz → 0.0.5__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.3/src/cdk_private_s3_hosting.egg-info → cdk_private_s3_hosting-0.0.5}/PKG-INFO +35 -1
  2. {cdk_private_s3_hosting-0.0.3 → cdk_private_s3_hosting-0.0.5}/README.md +34 -0
  3. {cdk_private_s3_hosting-0.0.3 → cdk_private_s3_hosting-0.0.5}/setup.py +2 -2
  4. {cdk_private_s3_hosting-0.0.3 → cdk_private_s3_hosting-0.0.5}/src/cdk-private-s3-hosting/__init__.py +34 -0
  5. {cdk_private_s3_hosting-0.0.3 → cdk_private_s3_hosting-0.0.5}/src/cdk-private-s3-hosting/_jsii/__init__.py +2 -2
  6. cdk_private_s3_hosting-0.0.5/src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.5.jsii.tgz +0 -0
  7. {cdk_private_s3_hosting-0.0.3 → cdk_private_s3_hosting-0.0.5/src/cdk_private_s3_hosting.egg-info}/PKG-INFO +35 -1
  8. {cdk_private_s3_hosting-0.0.3 → cdk_private_s3_hosting-0.0.5}/src/cdk_private_s3_hosting.egg-info/SOURCES.txt +1 -1
  9. cdk_private_s3_hosting-0.0.3/src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.3.jsii.tgz +0 -0
  10. {cdk_private_s3_hosting-0.0.3 → cdk_private_s3_hosting-0.0.5}/LICENSE +0 -0
  11. {cdk_private_s3_hosting-0.0.3 → cdk_private_s3_hosting-0.0.5}/MANIFEST.in +0 -0
  12. {cdk_private_s3_hosting-0.0.3 → cdk_private_s3_hosting-0.0.5}/pyproject.toml +0 -0
  13. {cdk_private_s3_hosting-0.0.3 → cdk_private_s3_hosting-0.0.5}/setup.cfg +0 -0
  14. {cdk_private_s3_hosting-0.0.3 → cdk_private_s3_hosting-0.0.5}/src/cdk-private-s3-hosting/py.typed +0 -0
  15. {cdk_private_s3_hosting-0.0.3 → cdk_private_s3_hosting-0.0.5}/src/cdk_private_s3_hosting.egg-info/dependency_links.txt +0 -0
  16. {cdk_private_s3_hosting-0.0.3 → cdk_private_s3_hosting-0.0.5}/src/cdk_private_s3_hosting.egg-info/requires.txt +0 -0
  17. {cdk_private_s3_hosting-0.0.3 → cdk_private_s3_hosting-0.0.5}/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
3
+ Version: 0.0.5
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,37 @@ 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
+ ## Setup DNS
119
+
120
+ This construct creates Route53 hosted zone and an A record for the domain name you specified by default.
121
+
122
+ If you want to use your own DNS settings(e.g. using a corporate DNS server),
123
+ you can disable the Route53 hosted zone creation by setting the `enablePrivateDns` property to `false`.
124
+
125
+ ```python
126
+ import { PrivateS3Hosting } from 'cdk-private-s3-hosting';
127
+
128
+ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
129
+ domainName: 'cryer-nao-domain.com',
130
+ enablePrivateDns: false,
131
+ });
132
+ ```
133
+
134
+ ## TLS Certificate
135
+
136
+ If you want to use HTTPS, you need to create a TLS certificate in ACM and pass it to the `certificate` property.
137
+
138
+ ```python
139
+ import * as acm from 'aws-cdk-lib/aws-certificatemanager';
140
+ import { PrivateS3Hosting } from 'cdk-private-s3-hosting';
141
+
142
+ declare const certificate: acm.ICertificate;
143
+
144
+ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
145
+ domainName: 'cryer-nao-domain.com',
146
+ certificate,
147
+ });
148
+ ```
149
+
150
+ Of course, specified domain name (`domainName` and `subDomain`) must be the same as the domain name of the certificate.
@@ -86,3 +86,37 @@ After deploying the stack, you can access the website using the `domainName` you
86
86
  ```
87
87
 
88
88
  **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.
89
+
90
+ ## Setup DNS
91
+
92
+ This construct creates Route53 hosted zone and an A record for the domain name you specified by default.
93
+
94
+ If you want to use your own DNS settings(e.g. using a corporate DNS server),
95
+ you can disable the Route53 hosted zone creation by setting the `enablePrivateDns` property to `false`.
96
+
97
+ ```python
98
+ import { PrivateS3Hosting } from 'cdk-private-s3-hosting';
99
+
100
+ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
101
+ domainName: 'cryer-nao-domain.com',
102
+ enablePrivateDns: false,
103
+ });
104
+ ```
105
+
106
+ ## TLS Certificate
107
+
108
+ If you want to use HTTPS, you need to create a TLS certificate in ACM and pass it to the `certificate` property.
109
+
110
+ ```python
111
+ import * as acm from 'aws-cdk-lib/aws-certificatemanager';
112
+ import { PrivateS3Hosting } from 'cdk-private-s3-hosting';
113
+
114
+ declare const certificate: acm.ICertificate;
115
+
116
+ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
117
+ domainName: 'cryer-nao-domain.com',
118
+ certificate,
119
+ });
120
+ ```
121
+
122
+ Of course, specified domain name (`domainName` and `subDomain`) must be the same as the domain name of the certificate.
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "cdk-private-s3-hosting",
8
- "version": "0.0.3",
8
+ "version": "0.0.5",
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.3.jsii.tgz"
29
+ "cdk-private-s3-hosting@0.0.5.jsii.tgz"
30
30
  ],
31
31
  "cdk-private-s3-hosting": [
32
32
  "py.typed"
@@ -87,6 +87,40 @@ 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
+ ## Setup DNS
92
+
93
+ This construct creates Route53 hosted zone and an A record for the domain name you specified by default.
94
+
95
+ If you want to use your own DNS settings(e.g. using a corporate DNS server),
96
+ you can disable the Route53 hosted zone creation by setting the `enablePrivateDns` property to `false`.
97
+
98
+ ```python
99
+ import { PrivateS3Hosting } from 'cdk-private-s3-hosting';
100
+
101
+ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
102
+ domainName: 'cryer-nao-domain.com',
103
+ enablePrivateDns: false,
104
+ });
105
+ ```
106
+
107
+ ## TLS Certificate
108
+
109
+ If you want to use HTTPS, you need to create a TLS certificate in ACM and pass it to the `certificate` property.
110
+
111
+ ```python
112
+ import * as acm from 'aws-cdk-lib/aws-certificatemanager';
113
+ import { PrivateS3Hosting } from 'cdk-private-s3-hosting';
114
+
115
+ declare const certificate: acm.ICertificate;
116
+
117
+ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
118
+ domainName: 'cryer-nao-domain.com',
119
+ certificate,
120
+ });
121
+ ```
122
+
123
+ Of course, specified domain name (`domainName` and `subDomain`) must be the same as the domain name of the certificate.
90
124
  '''
91
125
  from pkgutil import extend_path
92
126
  __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.3",
36
+ "0.0.5",
37
37
  __name__[0:-6],
38
- "cdk-private-s3-hosting@0.0.3.jsii.tgz",
38
+ "cdk-private-s3-hosting@0.0.5.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.3
3
+ Version: 0.0.5
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,37 @@ 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
+ ## Setup DNS
119
+
120
+ This construct creates Route53 hosted zone and an A record for the domain name you specified by default.
121
+
122
+ If you want to use your own DNS settings(e.g. using a corporate DNS server),
123
+ you can disable the Route53 hosted zone creation by setting the `enablePrivateDns` property to `false`.
124
+
125
+ ```python
126
+ import { PrivateS3Hosting } from 'cdk-private-s3-hosting';
127
+
128
+ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
129
+ domainName: 'cryer-nao-domain.com',
130
+ enablePrivateDns: false,
131
+ });
132
+ ```
133
+
134
+ ## TLS Certificate
135
+
136
+ If you want to use HTTPS, you need to create a TLS certificate in ACM and pass it to the `certificate` property.
137
+
138
+ ```python
139
+ import * as acm from 'aws-cdk-lib/aws-certificatemanager';
140
+ import { PrivateS3Hosting } from 'cdk-private-s3-hosting';
141
+
142
+ declare const certificate: acm.ICertificate;
143
+
144
+ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
145
+ domainName: 'cryer-nao-domain.com',
146
+ certificate,
147
+ });
148
+ ```
149
+
150
+ Of course, specified domain name (`domainName` and `subDomain`) must be the same as the domain name of the certificate.
@@ -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.3.jsii.tgz
9
+ src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.5.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