cdk-private-s3-hosting 0.0.7__tar.gz → 0.0.8__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.7/src/cdk_private_s3_hosting.egg-info → cdk_private_s3_hosting-0.0.8}/PKG-INFO +15 -2
  2. {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.8}/README.md +14 -1
  3. {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.8}/setup.py +2 -2
  4. {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.8}/src/cdk-private-s3-hosting/__init__.py +14 -1
  5. {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.8}/src/cdk-private-s3-hosting/_jsii/__init__.py +2 -2
  6. cdk_private_s3_hosting-0.0.8/src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.8.jsii.tgz +0 -0
  7. {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.8/src/cdk_private_s3_hosting.egg-info}/PKG-INFO +15 -2
  8. {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.8}/src/cdk_private_s3_hosting.egg-info/SOURCES.txt +1 -1
  9. cdk_private_s3_hosting-0.0.7/src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.7.jsii.tgz +0 -0
  10. {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.8}/LICENSE +0 -0
  11. {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.8}/MANIFEST.in +0 -0
  12. {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.8}/pyproject.toml +0 -0
  13. {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.8}/setup.cfg +0 -0
  14. {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.8}/src/cdk-private-s3-hosting/py.typed +0 -0
  15. {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.8}/src/cdk_private_s3_hosting.egg-info/dependency_links.txt +0 -0
  16. {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.8}/src/cdk_private_s3_hosting.egg-info/requires.txt +0 -0
  17. {cdk_private_s3_hosting-0.0.7 → cdk_private_s3_hosting-0.0.8}/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.7
3
+ Version: 0.0.8
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>
@@ -68,12 +68,25 @@ 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
+
77
90
  ### Deploy the frontend assets
78
91
 
79
92
  You can deploy the frontend assets to the S3 bucket like below:
@@ -40,12 +40,25 @@ 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
+
49
62
  ### Deploy the frontend assets
50
63
 
51
64
  You can deploy the frontend assets to the S3 bucket like below:
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "cdk-private-s3-hosting",
8
- "version": "0.0.7",
8
+ "version": "0.0.8",
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.7.jsii.tgz"
29
+ "cdk-private-s3-hosting@0.0.8.jsii.tgz"
30
30
  ],
31
31
  "cdk-private-s3-hosting": [
32
32
  "py.typed"
@@ -41,12 +41,25 @@ 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
+
50
63
  ### Deploy the frontend assets
51
64
 
52
65
  You can deploy the frontend assets to the S3 bucket like below:
@@ -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.7",
36
+ "0.0.8",
37
37
  __name__[0:-6],
38
- "cdk-private-s3-hosting@0.0.7.jsii.tgz",
38
+ "cdk-private-s3-hosting@0.0.8.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.7
3
+ Version: 0.0.8
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>
@@ -68,12 +68,25 @@ 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
+
77
90
  ### Deploy the frontend assets
78
91
 
79
92
  You can deploy the frontend assets to the S3 bucket like below:
@@ -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.7.jsii.tgz
9
+ src/cdk-private-s3-hosting/_jsii/cdk-private-s3-hosting@0.0.8.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