cdk-private-s3-hosting 0.0.7__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.7/src/cdk_private_s3_hosting.egg-info → cdk_private_s3_hosting-0.0.9}/PKG-INFO +40 -6
- {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.9}/README.md +37 -3
- {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.9}/setup.py +4 -4
- {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.9}/src/cdk-private-s3-hosting/__init__.py +37 -3
- {cdk_private_s3_hosting-0.0.7 → 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.7 → cdk_private_s3_hosting-0.0.9/src/cdk_private_s3_hosting.egg-info}/PKG-INFO +40 -6
- {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.9}/src/cdk_private_s3_hosting.egg-info/SOURCES.txt +1 -1
- {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.9}/src/cdk_private_s3_hosting.egg-info/requires.txt +2 -2
- cdk_private_s3_hosting-0.0.7/src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.7.jsii.tgz +0 -0
- {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.9}/LICENSE +0 -0
- {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.9}/MANIFEST.in +0 -0
- {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.9}/pyproject.toml +0 -0
- {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.9}/setup.cfg +0 -0
- {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.9}/src/cdk-private-s3-hosting/py.typed +0 -0
- {cdk_private_s3_hosting-0.0.7 → 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.7 → 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
|
|
@@ -68,12 +68,46 @@ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
|
68
68
|
|
69
69
|
After you deploy the stack, you can access the S3 bucket using the ALB's DNS name from the VPC where the stack is deployed.
|
70
70
|
|
71
|
-
For example, if you put the `hoge.txt` file in the S3 bucket, you can access it using the following command:
|
71
|
+
For example, if you put the `hoge.txt` file in the root of S3 bucket, you can access it using the following command:
|
72
72
|
|
73
73
|
```sh
|
74
74
|
curl http://cryer-nao-domain.com/hoge.txt
|
75
75
|
```
|
76
76
|
|
77
|
+
### Use existing VPC
|
78
|
+
|
79
|
+
You can use an existing VPC by specifying the `vpc` property.
|
80
|
+
|
81
|
+
```python
|
82
|
+
declare const vpc: ec2.IVpc;
|
83
|
+
|
84
|
+
const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
85
|
+
domainName: 'cryer-nao-domain.com',
|
86
|
+
vpc,
|
87
|
+
});
|
88
|
+
```
|
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
|
+
|
77
111
|
### Deploy the frontend assets
|
78
112
|
|
79
113
|
You can deploy the frontend assets to the S3 bucket like below:
|
@@ -116,7 +150,7 @@ After deploying the stack, you can access the website using the `domainName` you
|
|
116
150
|
|
117
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.
|
118
152
|
|
119
|
-
|
153
|
+
### Setup DNS
|
120
154
|
|
121
155
|
This construct creates Route53 hosted zone and an A record for the domain name you specified by default.
|
122
156
|
|
@@ -132,7 +166,7 @@ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
|
132
166
|
});
|
133
167
|
```
|
134
168
|
|
135
|
-
|
169
|
+
### TLS Certificate
|
136
170
|
|
137
171
|
If you want to use HTTPS, you need to create a TLS certificate in ACM and pass it to the `certificate` property.
|
138
172
|
|
@@ -40,12 +40,46 @@ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
|
40
40
|
|
41
41
|
After you deploy the stack, you can access the S3 bucket using the ALB's DNS name from the VPC where the stack is deployed.
|
42
42
|
|
43
|
-
For example, if you put the `hoge.txt` file in the S3 bucket, you can access it using the following command:
|
43
|
+
For example, if you put the `hoge.txt` file in the root of S3 bucket, you can access it using the following command:
|
44
44
|
|
45
45
|
```sh
|
46
46
|
curl http://cryer-nao-domain.com/hoge.txt
|
47
47
|
```
|
48
48
|
|
49
|
+
### Use existing VPC
|
50
|
+
|
51
|
+
You can use an existing VPC by specifying the `vpc` property.
|
52
|
+
|
53
|
+
```python
|
54
|
+
declare const vpc: ec2.IVpc;
|
55
|
+
|
56
|
+
const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
57
|
+
domainName: 'cryer-nao-domain.com',
|
58
|
+
vpc,
|
59
|
+
});
|
60
|
+
```
|
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
|
+
|
49
83
|
### Deploy the frontend assets
|
50
84
|
|
51
85
|
You can deploy the frontend assets to the S3 bucket like below:
|
@@ -88,7 +122,7 @@ After deploying the stack, you can access the website using the `domainName` you
|
|
88
122
|
|
89
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.
|
90
124
|
|
91
|
-
|
125
|
+
### Setup DNS
|
92
126
|
|
93
127
|
This construct creates Route53 hosted zone and an A record for the domain name you specified by default.
|
94
128
|
|
@@ -104,7 +138,7 @@ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
|
104
138
|
});
|
105
139
|
```
|
106
140
|
|
107
|
-
|
141
|
+
### TLS Certificate
|
108
142
|
|
109
143
|
If you want to use HTTPS, you need to create a TLS certificate in ACM and pass it to the `certificate` property.
|
110
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.7 → cdk_private_s3_hosting-0.0.9}/src/cdk-private-s3-hosting/__init__.py
RENAMED
@@ -41,12 +41,46 @@ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
|
41
41
|
|
42
42
|
After you deploy the stack, you can access the S3 bucket using the ALB's DNS name from the VPC where the stack is deployed.
|
43
43
|
|
44
|
-
For example, if you put the `hoge.txt` file in the S3 bucket, you can access it using the following command:
|
44
|
+
For example, if you put the `hoge.txt` file in the root of S3 bucket, you can access it using the following command:
|
45
45
|
|
46
46
|
```sh
|
47
47
|
curl http://cryer-nao-domain.com/hoge.txt
|
48
48
|
```
|
49
49
|
|
50
|
+
### Use existing VPC
|
51
|
+
|
52
|
+
You can use an existing VPC by specifying the `vpc` property.
|
53
|
+
|
54
|
+
```python
|
55
|
+
declare const vpc: ec2.IVpc;
|
56
|
+
|
57
|
+
const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
58
|
+
domainName: 'cryer-nao-domain.com',
|
59
|
+
vpc,
|
60
|
+
});
|
61
|
+
```
|
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
|
+
|
50
84
|
### Deploy the frontend assets
|
51
85
|
|
52
86
|
You can deploy the frontend assets to the S3 bucket like below:
|
@@ -89,7 +123,7 @@ After deploying the stack, you can access the website using the `domainName` you
|
|
89
123
|
|
90
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.
|
91
125
|
|
92
|
-
|
126
|
+
### Setup DNS
|
93
127
|
|
94
128
|
This construct creates Route53 hosted zone and an A record for the domain name you specified by default.
|
95
129
|
|
@@ -105,7 +139,7 @@ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
|
105
139
|
});
|
106
140
|
```
|
107
141
|
|
108
|
-
|
142
|
+
### TLS Certificate
|
109
143
|
|
110
144
|
If you want to use HTTPS, you need to create a TLS certificate in ACM and pass it to the `certificate` property.
|
111
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
|
|
@@ -68,12 +68,46 @@ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
|
68
68
|
|
69
69
|
After you deploy the stack, you can access the S3 bucket using the ALB's DNS name from the VPC where the stack is deployed.
|
70
70
|
|
71
|
-
For example, if you put the `hoge.txt` file in the S3 bucket, you can access it using the following command:
|
71
|
+
For example, if you put the `hoge.txt` file in the root of S3 bucket, you can access it using the following command:
|
72
72
|
|
73
73
|
```sh
|
74
74
|
curl http://cryer-nao-domain.com/hoge.txt
|
75
75
|
```
|
76
76
|
|
77
|
+
### Use existing VPC
|
78
|
+
|
79
|
+
You can use an existing VPC by specifying the `vpc` property.
|
80
|
+
|
81
|
+
```python
|
82
|
+
declare const vpc: ec2.IVpc;
|
83
|
+
|
84
|
+
const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
85
|
+
domainName: 'cryer-nao-domain.com',
|
86
|
+
vpc,
|
87
|
+
});
|
88
|
+
```
|
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
|
+
|
77
111
|
### Deploy the frontend assets
|
78
112
|
|
79
113
|
You can deploy the frontend assets to the S3 bucket like below:
|
@@ -116,7 +150,7 @@ After deploying the stack, you can access the website using the `domainName` you
|
|
116
150
|
|
117
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.
|
118
152
|
|
119
|
-
|
153
|
+
### Setup DNS
|
120
154
|
|
121
155
|
This construct creates Route53 hosted zone and an A record for the domain name you specified by default.
|
122
156
|
|
@@ -132,7 +166,7 @@ const privateS3Hosting = new PrivateS3Hosting(this, 'PrivateS3Hosting', {
|
|
132
166
|
});
|
133
167
|
```
|
134
168
|
|
135
|
-
|
169
|
+
### TLS Certificate
|
136
170
|
|
137
171
|
If you want to use HTTPS, you need to create a TLS certificate in ACM and pass it to the `certificate` property.
|
138
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.7/src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.7.jsii.tgz
DELETED
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.9}/src/cdk-private-s3-hosting/py.typed
RENAMED
File without changes
|
File without changes
|
File without changes
|