cloud-foundry 0.5.0__tar.gz → 0.5.2__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 (44) hide show
  1. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/PKG-INFO +1 -1
  2. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/__init__.py +1 -1
  3. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/cdn.py +9 -1
  4. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/postgres_schema.py +4 -1
  5. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/schedule.py +3 -1
  6. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/.gitignore +0 -0
  7. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/LICENSE +0 -0
  8. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/README.md +0 -0
  9. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/archive_builder.py +0 -0
  10. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/mail_publisher.py +0 -0
  11. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/migrations/__init__.py +0 -0
  12. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/migrations/forget_site_objects.py +0 -0
  13. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/__init__.py +0 -0
  14. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/api_waf.py +0 -0
  15. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/cdn_api_origin.py +0 -0
  16. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/cdn_site_origin.py +0 -0
  17. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/connection_store.py +0 -0
  18. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/custom_domain.py +0 -0
  19. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/document_repository.py +0 -0
  20. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/domain.py +0 -0
  21. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/function.py +0 -0
  22. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/idle_reaper.py +0 -0
  23. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/publisher.py +0 -0
  24. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/python_function.py +0 -0
  25. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/queue.py +0 -0
  26. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/rest_api.py +0 -0
  27. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/site_bucket.py +0 -0
  28. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/topic.py +0 -0
  29. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/topic_subscription.py +0 -0
  30. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/ui_publisher.py +0 -0
  31. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/websocket_api.py +0 -0
  32. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/pulumi/websocket_function.py +0 -0
  33. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/python_archive_builder.py +0 -0
  34. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/services/authorization_api/security_lambda.py +0 -0
  35. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/services/mail_publisher.py +0 -0
  36. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/services/postgres_schema_bootstrap.py +0 -0
  37. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/utils/aws_openapi_editor.py +0 -0
  38. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/utils/hash_comparator.py +0 -0
  39. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/utils/idle_reaper_client.py +0 -0
  40. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/utils/logger.py +0 -0
  41. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/utils/names.py +0 -0
  42. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/utils/openapi_editor.py +0 -0
  43. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/cloud_foundry/utils/websocket_utils.py +0 -0
  44. {cloud_foundry-0.5.0 → cloud_foundry-0.5.2}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloud-foundry
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: cloud-foundry is a curated set of cloud components that can be used to assemble cloud-based applications.
5
5
  Project-URL: Documentation, https://github.com/DanRepik/cloud-foundry
6
6
  Project-URL: Source, https://github.com/DanRepik/cloud-foundry
@@ -35,4 +35,4 @@ from cloud_foundry.utils.idle_reaper_client import request_mapping_enable # noq
35
35
  from cloud_foundry.utils.names import resource_id # noqa: F401
36
36
  from cloud_foundry.utils.names import project_slug # noqa: F401
37
37
 
38
- version = "0.5.0"
38
+ version = "0.5.2"
@@ -310,7 +310,15 @@ class CDN(pulumi.ComponentResource):
310
310
  )
311
311
  ),
312
312
  viewer_certificate={
313
- "acm_certificate_arn": custom_certificate.certificate.arn,
313
+ # The validated certificate's ARN, not the raw one: ACM
314
+ # certificates are created pending validation, and
315
+ # CloudFront rejects them (InvalidViewerCertificate) until
316
+ # validation completes. CertificateValidation is created
317
+ # inside an apply, so depends_on=[custom_certificate]
318
+ # cannot wait for it, but this output can.
319
+ "acm_certificate_arn": custom_certificate.validation.apply(
320
+ lambda validation: validation.certificate_arn
321
+ ),
314
322
  "ssl_support_method": "sni-only",
315
323
  "minimum_protocol_version": "TLSv1.2_2021",
316
324
  },
@@ -169,7 +169,10 @@ class PostgresSchema(ComponentResource):
169
169
  digest = hashlib.sha256((config_json + "\n" + schema_sql).encode()).hexdigest()
170
170
  self.invocation = aws.lambda_.Invocation(
171
171
  f"{name}-invoke",
172
- function_name=self.function.function_name,
172
+ # The Lambda resource's name Output, not Function.function_name
173
+ # (a plain string): only the Output makes Pulumi wait for the
174
+ # function to exist before invoking it.
175
+ function_name=self.function.lambda_.name,
173
176
  # The handler ignores the event; input and triggers only make
174
177
  # Pulumi re-invoke when the script, configuration or password
175
178
  # changes.
@@ -22,8 +22,10 @@ from cloud_foundry.utils.names import resource_id
22
22
 
23
23
 
24
24
  def _function_name(function) -> Input[str]:
25
+ # Outputs of the Lambda resource, not Function.function_name (a plain
26
+ # string), so the permission waits for the function to exist.
25
27
  if isinstance(function, Function):
26
- return function.function_name
28
+ return function.lambda_.name
27
29
  if isinstance(function, aws.lambda_.Function):
28
30
  return function.name
29
31
  return function
File without changes
File without changes
File without changes