pulumi-tls 5.0.2__py3-none-any.whl → 5.0.3__py3-none-any.whl
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.
- pulumi_tls/cert_request.py +4 -6
- pulumi_tls/get_public_key.py +8 -6
- {pulumi_tls-5.0.2.dist-info → pulumi_tls-5.0.3.dist-info}/METADATA +1 -1
- {pulumi_tls-5.0.2.dist-info → pulumi_tls-5.0.3.dist-info}/RECORD +6 -6
- {pulumi_tls-5.0.2.dist-info → pulumi_tls-5.0.3.dist-info}/WHEEL +0 -0
- {pulumi_tls-5.0.2.dist-info → pulumi_tls-5.0.3.dist-info}/top_level.txt +0 -0
pulumi_tls/cert_request.py
CHANGED
@@ -234,19 +234,18 @@ class CertRequest(pulumi.CustomResource):
|
|
234
234
|
"""
|
235
235
|
## Example Usage
|
236
236
|
|
237
|
-
<!--Start PulumiCodeChooser -->
|
238
237
|
```python
|
239
238
|
import pulumi
|
239
|
+
import pulumi_std as std
|
240
240
|
import pulumi_tls as tls
|
241
241
|
|
242
242
|
example = tls.CertRequest("example",
|
243
|
-
private_key_pem=
|
243
|
+
private_key_pem=std.file(input="private_key.pem").result,
|
244
244
|
subject=tls.CertRequestSubjectArgs(
|
245
245
|
common_name="example.com",
|
246
246
|
organization="ACME Examples, Inc",
|
247
247
|
))
|
248
248
|
```
|
249
|
-
<!--End PulumiCodeChooser -->
|
250
249
|
|
251
250
|
:param str resource_name: The name of the resource.
|
252
251
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
@@ -265,19 +264,18 @@ class CertRequest(pulumi.CustomResource):
|
|
265
264
|
"""
|
266
265
|
## Example Usage
|
267
266
|
|
268
|
-
<!--Start PulumiCodeChooser -->
|
269
267
|
```python
|
270
268
|
import pulumi
|
269
|
+
import pulumi_std as std
|
271
270
|
import pulumi_tls as tls
|
272
271
|
|
273
272
|
example = tls.CertRequest("example",
|
274
|
-
private_key_pem=
|
273
|
+
private_key_pem=std.file(input="private_key.pem").result,
|
275
274
|
subject=tls.CertRequestSubjectArgs(
|
276
275
|
common_name="example.com",
|
277
276
|
organization="ACME Examples, Inc",
|
278
277
|
))
|
279
278
|
```
|
280
|
-
<!--End PulumiCodeChooser -->
|
281
279
|
|
282
280
|
:param str resource_name: The name of the resource.
|
283
281
|
:param CertRequestArgs args: The arguments to use to populate this resource's properties.
|
pulumi_tls/get_public_key.py
CHANGED
@@ -138,16 +138,17 @@ def get_public_key(private_key_openssh: Optional[str] = None,
|
|
138
138
|
|
139
139
|
## Example Usage
|
140
140
|
|
141
|
-
<!--Start PulumiCodeChooser -->
|
142
141
|
```python
|
143
142
|
import pulumi
|
143
|
+
import pulumi_std as std
|
144
144
|
import pulumi_tls as tls
|
145
145
|
|
146
146
|
ed25519_example = tls.PrivateKey("ed25519-example", algorithm="ED25519")
|
147
|
+
# Public key loaded from a terraform-generated private key, using the PEM (RFC 1421) format
|
147
148
|
private_key_pem_example = tls.get_public_key_output(private_key_pem=ed25519_example.private_key_pem)
|
148
|
-
|
149
|
+
# Public key loaded from filesystem, using the Open SSH (RFC 4716) format
|
150
|
+
private_key_openssh_example = tls.get_public_key(private_key_openssh=std.file(input="~/.ssh/id_rsa_rfc4716").result)
|
149
151
|
```
|
150
|
-
<!--End PulumiCodeChooser -->
|
151
152
|
|
152
153
|
|
153
154
|
:param str private_key_openssh: The private key (in [OpenSSH PEM (RFC 4716)](https://datatracker.ietf.org/doc/html/rfc4716) format) to extract the public key from. This is *mutually exclusive* with `private_key_pem`. Currently-supported algorithms for keys are: `RSA`, `ECDSA`, `ED25519`.
|
@@ -181,16 +182,17 @@ def get_public_key_output(private_key_openssh: Optional[pulumi.Input[Optional[st
|
|
181
182
|
|
182
183
|
## Example Usage
|
183
184
|
|
184
|
-
<!--Start PulumiCodeChooser -->
|
185
185
|
```python
|
186
186
|
import pulumi
|
187
|
+
import pulumi_std as std
|
187
188
|
import pulumi_tls as tls
|
188
189
|
|
189
190
|
ed25519_example = tls.PrivateKey("ed25519-example", algorithm="ED25519")
|
191
|
+
# Public key loaded from a terraform-generated private key, using the PEM (RFC 1421) format
|
190
192
|
private_key_pem_example = tls.get_public_key_output(private_key_pem=ed25519_example.private_key_pem)
|
191
|
-
|
193
|
+
# Public key loaded from filesystem, using the Open SSH (RFC 4716) format
|
194
|
+
private_key_openssh_example = tls.get_public_key(private_key_openssh=std.file(input="~/.ssh/id_rsa_rfc4716").result)
|
192
195
|
```
|
193
|
-
<!--End PulumiCodeChooser -->
|
194
196
|
|
195
197
|
|
196
198
|
:param str private_key_openssh: The private key (in [OpenSSH PEM (RFC 4716)](https://datatracker.ietf.org/doc/html/rfc4716) format) to extract the public key from. This is *mutually exclusive* with `private_key_pem`. Currently-supported algorithms for keys are: `RSA`, `ECDSA`, `ED25519`.
|
@@ -1,9 +1,9 @@
|
|
1
1
|
pulumi_tls/__init__.py,sha256=Fk7hjyRIMx42E0iGoNp4d238SBG6PAUxDzvlIndTJck,1523
|
2
2
|
pulumi_tls/_inputs.py,sha256=KVpnu-mvOyzrpVpdrb90KBWDhaN_i67rIkdR3d8qJlw,14351
|
3
3
|
pulumi_tls/_utilities.py,sha256=b6gJn0IIeM1t6Q7EVjqw3yhuGyP-uENQhtL5yp7aHR8,9248
|
4
|
-
pulumi_tls/cert_request.py,sha256=
|
4
|
+
pulumi_tls/cert_request.py,sha256=IkUPm9Lq9q3WK9d0FbS4NS_F_sSS1T-nkxJB0Hpuzic,20435
|
5
5
|
pulumi_tls/get_certificate.py,sha256=lUy1OLl5oA8GbQnOeVy6F7Sfd8pWSgCnZ1g9gV9Jr30,5540
|
6
|
-
pulumi_tls/get_public_key.py,sha256=
|
6
|
+
pulumi_tls/get_public_key.py,sha256=9rlku7HjE567b7gQaYv1e7NsuLmkyohuAK62yDBCq2g,10349
|
7
7
|
pulumi_tls/locally_signed_cert.py,sha256=4NvYD8E-YpLQ-rIncp90RC7FDtJoMSYkoOjmuXHm2zM,41155
|
8
8
|
pulumi_tls/outputs.py,sha256=3Yjo4iKbFD4gJQhCGGWwocpCAuS3V-d6nvQ9lseB3Qg,14909
|
9
9
|
pulumi_tls/private_key.py,sha256=l7YLkUhXlp-lLWST8p34AoR0zMI_Dj2qRlQEf8sjMVg,22201
|
@@ -15,7 +15,7 @@ pulumi_tls/config/__init__.py,sha256=cfY0smRZD3fDVc93ZIAxEl_IM2pynmXB52n3Ahzi030
|
|
15
15
|
pulumi_tls/config/__init__.pyi,sha256=kaPJpeRs8A7zNA-3MY-QL0zyxMV0oqUrYrsLj3HpqEg,474
|
16
16
|
pulumi_tls/config/outputs.py,sha256=SYfBlhKnqFeIaEpQLFgdBfABD4pzTkAlZTuwWWsGQ4A,2653
|
17
17
|
pulumi_tls/config/vars.py,sha256=wTZ5QbW-pH76tJ5PSA2zAFV4bPdtC5pmxQsV7jRd3c8,661
|
18
|
-
pulumi_tls-5.0.
|
19
|
-
pulumi_tls-5.0.
|
20
|
-
pulumi_tls-5.0.
|
21
|
-
pulumi_tls-5.0.
|
18
|
+
pulumi_tls-5.0.3.dist-info/METADATA,sha256=wUz7FYzrC6hLMMLfkwz8dMNxc7HabSaHJPWK7_Rw3TE,2416
|
19
|
+
pulumi_tls-5.0.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
20
|
+
pulumi_tls-5.0.3.dist-info/top_level.txt,sha256=w0yJOTuCUb1BpNsSTm0FJZPucueobFIfzPGzjYklx1U,11
|
21
|
+
pulumi_tls-5.0.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|