@aws/nx-plugin 0.46.0 → 0.47.0

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 (58) hide show
  1. package/package.json +1 -1
  2. package/src/infra/app/generator.js +4 -1
  3. package/src/infra/app/generator.js.map +1 -1
  4. package/src/py/fast-api/__snapshots__/generator.spec.ts.snap +60 -0
  5. package/src/py/fast-api/react/__snapshots__/generator.spec.ts.snap +1 -0
  6. package/src/py/lambda-function/__snapshots__/generator.spec.ts.snap +310 -0
  7. package/src/py/lambda-function/generator.js +15 -25
  8. package/src/py/lambda-function/generator.js.map +1 -1
  9. package/src/py/lambda-function/schema.d.ts +1 -0
  10. package/src/py/lambda-function/schema.json +8 -0
  11. package/src/trpc/backend/__snapshots__/generator.spec.ts.snap +60 -0
  12. package/src/trpc/react/__snapshots__/generator.spec.ts.snap +1 -0
  13. package/src/ts/lambda-function/__snapshots__/generator.spec.ts.snap +310 -0
  14. package/src/ts/lambda-function/generator.js +15 -27
  15. package/src/ts/lambda-function/generator.js.map +1 -1
  16. package/src/ts/lambda-function/schema.d.ts +1 -0
  17. package/src/ts/lambda-function/schema.json +8 -0
  18. package/src/ts/react-website/app/__snapshots__/generator.spec.ts.snap +756 -0
  19. package/src/ts/react-website/app/generator.js +42 -43
  20. package/src/ts/react-website/app/generator.js.map +1 -1
  21. package/src/ts/react-website/app/schema.d.ts +1 -0
  22. package/src/ts/react-website/app/schema.json +8 -0
  23. package/src/ts/react-website/cognito-auth/__snapshots__/generator.spec.ts.snap +259 -0
  24. package/src/ts/react-website/cognito-auth/generator.js +10 -13
  25. package/src/ts/react-website/cognito-auth/generator.js.map +1 -1
  26. package/src/ts/react-website/cognito-auth/schema.d.ts +1 -0
  27. package/src/ts/react-website/cognito-auth/schema.json +8 -0
  28. package/src/ts/react-website/runtime-config/__snapshots__/generator.spec.ts.snap +0 -40
  29. package/src/ts/react-website/runtime-config/generator.js +0 -2
  30. package/src/ts/react-website/runtime-config/generator.js.map +1 -1
  31. package/src/utils/api-constructs/files/terraform/app/apis/http/__apiNameKebabCase__/__apiNameKebabCase__.tf.template +10 -0
  32. package/src/utils/api-constructs/files/terraform/app/apis/rest/__apiNameKebabCase__/__apiNameKebabCase__.tf.template +10 -0
  33. package/src/utils/files/terraform/src/core/runtime-config/entry/entry.tf.template +119 -0
  34. package/src/utils/files/terraform/src/core/runtime-config/read/read.tf.template +28 -0
  35. package/src/{py/lambda-function/files/common/constructs/src/app/lambda-functions/__constructFunctionKebabCase__.ts.template → utils/function-constructs/files/cdk/app/lambda-functions/__functionNameKebabCase__.ts.template} +5 -5
  36. package/src/utils/function-constructs/files/terraform/app/lambda-functions/__functionNameKebabCase__/__functionNameKebabCase__.tf.template +150 -0
  37. package/src/utils/function-constructs/function-constructs.d.ts +19 -0
  38. package/src/utils/function-constructs/function-constructs.js +57 -0
  39. package/src/utils/function-constructs/function-constructs.js.map +1 -0
  40. package/src/utils/identity-constructs/files/terraform/core/user-identity/add-callback-url/add-callback-url.tf.template +123 -0
  41. package/src/utils/identity-constructs/files/terraform/core/user-identity/identity/identity.tf.template +421 -0
  42. package/src/utils/identity-constructs/files/terraform/core/user-identity/main.tf.template +47 -0
  43. package/src/utils/identity-constructs/identity-constructs.d.ts +15 -0
  44. package/src/utils/identity-constructs/identity-constructs.js +84 -0
  45. package/src/utils/identity-constructs/identity-constructs.js.map +1 -0
  46. package/src/utils/metrics.js +1 -1
  47. package/src/utils/metrics.js.map +1 -1
  48. package/src/utils/shared-constructs.js +24 -0
  49. package/src/utils/shared-constructs.js.map +1 -1
  50. package/src/utils/website-constructs/files/terraform/app/static-websites/__websiteNameKebabCase__/__websiteNameKebabCase__.tf.template +42 -0
  51. package/src/utils/website-constructs/files/terraform/core/static-website/static-website.tf.template +709 -0
  52. package/src/utils/website-constructs/website-constructs.d.ts +18 -0
  53. package/src/utils/website-constructs/website-constructs.js +61 -0
  54. package/src/utils/website-constructs/website-constructs.js.map +1 -0
  55. package/src/ts/lambda-function/files/common/constructs/src/app/lambda-functions/__constructFunctionNameKebabCase__.ts.template +0 -24
  56. /package/src/{ts/react-website/cognito-auth/files/common/constructs/src → utils/identity-constructs/files/cdk}/core/user-identity.ts.template +0 -0
  57. /package/src/{ts/react-website/app/files/common/constructs/src → utils/website-constructs/files/cdk}/app/static-websites/__websiteNameKebabCase__.ts.template +0 -0
  58. /package/src/{ts/react-website/app/files/common/constructs/src → utils/website-constructs/files/cdk}/core/static-website.ts.template +0 -0
@@ -0,0 +1,42 @@
1
+ terraform {
2
+ required_providers {
3
+ aws = {
4
+ source = "hashicorp/aws"
5
+ version = "~> 6.0"
6
+ configuration_aliases = [aws.us_east_1]
7
+ }
8
+ }
9
+ }
10
+
11
+ # Static website module configured for the web package
12
+ module "static_website" {
13
+ source = "../../../core/static-website"
14
+
15
+ website_name = "<%= websiteNameKebabCase %>"
16
+ website_file_path = "${path.module}/../../../../../../../<%= websiteContentPath %>/bundle"
17
+
18
+ providers = {
19
+ aws.us_east_1 = aws.us_east_1
20
+ }
21
+ }
22
+
23
+ # Outputs
24
+ output "website_url" {
25
+ description = "URL of the deployed website"
26
+ value = "https://${module.static_website.cloudfront_domain_name}"
27
+ }
28
+
29
+ output "website_bucket_name" {
30
+ description = "Name of the S3 bucket hosting the website"
31
+ value = module.static_website.website_bucket_name
32
+ }
33
+
34
+ output "cloudfront_distribution_id" {
35
+ description = "ID of the CloudFront distribution"
36
+ value = module.static_website.cloudfront_distribution_id
37
+ }
38
+
39
+ output "cloudfront_domain_name" {
40
+ description = "Domain name of the CloudFront distribution"
41
+ value = module.static_website.cloudfront_domain_name
42
+ }