kislerdm / diagramastext

Application to streamline diagram generation using plain English instructions instead of code
https://diagramastext.dev
Apache License 2.0
24 stars 1 forks source link

Refactors the server codebase #49

Closed kislerdm closed 1 year ago

kislerdm commented 1 year ago

Why do we need it

To enable for multiple diagram rendering backends, e.g. mermaid in addition to PlantUML.

What changed

codecov-commenter commented 1 year ago

Codecov Report

Merging #49 (0823690) into master (eb6a5d5) will decrease coverage by 28.74%. The diff coverage is 32.11%.

:exclamation: Current head 0823690 differs from pull request most recent head 765a8eb. Consider uploading reports for the commit 765a8eb to get more accurate results

@@             Coverage Diff             @@
##           master      #49       +/-   ##
===========================================
- Coverage   69.53%   40.79%   -28.74%     
===========================================
  Files           9       11        +2     
  Lines         768      831       +63     
===========================================
- Hits          534      339      -195     
- Misses        223      482      +259     
+ Partials       11       10        -1     
Flag Coverage Δ
cmd-lambda-core-c4 16.47% <16.47%> (?)
lambda ?
module ?
postgres ?
root 43.56% <34.24%> (?)
secretsmanager ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
server/core/c4container/handler.go 0.00% <0.00%> (ø)
server/core/entrypoint.go 0.00% <0.00%> (ø)
server/core/postgres/postgres.go 0.00% <0.00%> (ø)
server/core/utils/utils.go 100.00% <ø> (ø)
server/core/openai/openai.go 10.40% <10.40%> (ø)
server/core/cmd/lambda/core-c4/main.go 16.47% <16.47%> (ø)
server/core/contract/contract.go 27.58% <27.58%> (ø)
server/core/secretsmanager/secretsmanager.go 61.11% <75.00%> (ø)
server/core/utils/svg.go 79.45% <79.45%> (ø)
server/core/errors/errors.go 89.47% <89.47%> (ø)
... and 2 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

github-actions[bot] commented 1 year ago

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output ``` Success! The configuration is valid.  ```

Terraform Plan 📖success

Show Plan ``` aws_api_gateway_rest_api.this: Refreshing state... [id=hl6yp94sy9] data.aws_iam_policy_document.core_rendering_c4_secret: Reading... aws_api_gateway_api_key.main: Refreshing state... [id=0iz5rl9ff4] aws_api_gateway_domain_name.this: Refreshing state... [id=api.stage.diagramastext.dev] data.aws_iam_policy_document.core_rendering_c4_secret: Read complete after 0s [id=2412329430] aws_iam_policy.core_rendering_c4_secret: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg] aws_api_gateway_resource.route_top["c4"]: Refreshing state... [id=xieiwr] aws_api_gateway_model.schema_response: Refreshing state... [id=2wvhiv] aws_cloudwatch_log_group.gw: Refreshing state... [id=API-Gateway-Execution-Logs_hl6yp94sy9] aws_api_gateway_request_validator.this: Refreshing state... [id=tq63jc] aws_api_gateway_model.schema_request: Refreshing state... [id=h6ryy8] module.core_rendering_c4.aws_cloudwatch_log_group.logs: Refreshing state... [id=/aws/lambda/core-rendering-c4-stg] module.core_rendering_c4.null_resource.this: Refreshing state... [id=6710239539001995364] module.core_rendering_c4.data.aws_iam_policy_document.logs: Reading... module.core_rendering_c4.aws_iam_role.this: Refreshing state... [id=LambdaRolecore-rendering-c4-stg] module.core_rendering_c4.data.aws_iam_policy_document.logs: Read complete after 0s [id=3830842054] module.core_rendering_c4.aws_iam_policy.logs: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaPolicyLogs-core-rendering-c4-stg] aws_api_gateway_method.options["c4"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-OPTIONS] aws_api_gateway_method.this["c4-POST"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-POST] aws_api_gateway_method_response.options["c4"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_integration.options["c4"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-OPTIONS] aws_api_gateway_integration_response.options["c4"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_integration_response.this["c4-POST"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-POST-200] aws_api_gateway_method_response.this["c4-POST"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-POST-200] module.core_rendering_c4.aws_iam_role_policy_attachment.logs: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156203900000002] module.core_rendering_c4.aws_iam_role_policy_attachment.custom["arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg"]: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156196600000001] module.core_rendering_c4.aws_lambda_function.this: Refreshing state... [id=core-rendering-c4-stg] aws_api_gateway_deployment.this: Refreshing state... [id=lq2fu8] aws_api_gateway_integration.this["c4-POST"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-POST] aws_lambda_permission.gw["c4-POST"]: Refreshing state... [id=InvokeGWMain-c4-POST] aws_api_gateway_stage.this: Refreshing state... [id=ags-hl6yp94sy9-base] aws_api_gateway_base_path_mapping.this: Refreshing state... [id=api.stage.diagramastext.dev/] aws_api_gateway_usage_plan.test: Refreshing state... [id=4v5ye3] aws_api_gateway_usage_plan_key.main: Refreshing state... [id=0iz5rl9ff4] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place +/- create replacement and then destroy Terraform will perform the following actions: # aws_api_gateway_deployment.this must be replaced +/- resource "aws_api_gateway_deployment" "this" { ~ created_date = "2023-02-26T13:45:20Z" -> (known after apply) ~ execution_arn = "arn:aws:execute-api:us-east-2:027889758114:hl6yp94sy9/" -> (known after apply) ~ id = "lq2fu8" -> (known after apply) ~ invoke_url = "https://hl6yp94sy9.execute-api.us-east-2.amazonaws.com/" -> (known after apply) ~ triggers = { # forces replacement ~ "redeployment" = "a0d35bd612ed446b6fca7d9603e5083e78ed2694" -> "2357af20be26c101fd760ce053bb3657f567fefd" } # (1 unchanged attribute hidden) } # aws_api_gateway_stage.this will be updated in-place ~ resource "aws_api_gateway_stage" "this" { ~ deployment_id = "lq2fu8" -> (known after apply) id = "ags-hl6yp94sy9-base" tags = {} # (10 unchanged attributes hidden) # (1 unchanged block hidden) } # module.core_rendering_c4.aws_lambda_function.this will be updated in-place ~ resource "aws_lambda_function" "this" { ~ filename = "/Users/dkisler/projects/diagramastext/server/deployment/modules/lambda/bin/core-rendering-c4-stg-eb73a194af29c438993da68be2108f77.zip" -> "/home/runner/work/diagramastext/diagramastext/server/deployment/modules/lambda/bin/core-rendering-c4-stg-cbb3dcc1ad61c1273587210c8693b60f.zip" id = "core-rendering-c4-stg" ~ last_modified = "2023-02-26T13:35:26.964+0000" -> (known after apply) tags = { "environment" = "staging" "in_deprecation" = "true" "system" = "mono:core+rendering-c4" } # (19 unchanged attributes hidden) # (3 unchanged blocks hidden) } # module.core_rendering_c4.null_resource.this must be replaced +/- resource "null_resource" "this" { ~ id = "6710239539001995364" -> (known after apply) ~ triggers = { # forces replacement ~ "md5" = "eb73a194af29c438993da68be2108f77" -> "cbb3dcc1ad61c1273587210c8693b60f" ~ "name" = "core-rendering-c4-stg-eb73a194af29c438993da68be2108f77.zip" -> "core-rendering-c4-stg-cbb3dcc1ad61c1273587210c8693b60f.zip" } } Plan: 2 to add, 2 to change, 2 to destroy. ───────────────────────────────────────────────────────────────────────────── Saved the plan to: /tmp/terraform.tfplan To perform exactly these actions, run the following command to apply: terraform apply "/tmp/terraform.tfplan" ```

Pusher: @kislerdm, Action: pull_request, Workflow: Deploy:Server

github-actions[bot] commented 1 year ago

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output ``` Success! The configuration is valid.  ```

Terraform Plan 📖success

Show Plan ``` aws_api_gateway_rest_api.this: Refreshing state... [id=hl6yp94sy9] aws_api_gateway_domain_name.this: Refreshing state... [id=api.stage.diagramastext.dev] data.aws_iam_policy_document.core_rendering_c4_secret: Reading... aws_api_gateway_api_key.main: Refreshing state... [id=0iz5rl9ff4] data.aws_iam_policy_document.core_rendering_c4_secret: Read complete after 0s [id=2412329430] aws_iam_policy.core_rendering_c4_secret: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg] module.core_rendering_c4.aws_iam_role.this: Refreshing state... [id=LambdaRolecore-rendering-c4-stg] module.core_rendering_c4.aws_cloudwatch_log_group.logs: Refreshing state... [id=/aws/lambda/core-rendering-c4-stg] module.core_rendering_c4.data.aws_iam_policy_document.logs: Reading... module.core_rendering_c4.null_resource.this: Refreshing state... [id=6710239539001995364] module.core_rendering_c4.data.aws_iam_policy_document.logs: Read complete after 0s [id=3830842054] module.core_rendering_c4.aws_iam_policy.logs: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaPolicyLogs-core-rendering-c4-stg] aws_api_gateway_request_validator.this: Refreshing state... [id=tq63jc] aws_cloudwatch_log_group.gw: Refreshing state... [id=API-Gateway-Execution-Logs_hl6yp94sy9] aws_api_gateway_model.schema_response: Refreshing state... [id=2wvhiv] aws_api_gateway_resource.route_top["c4"]: Refreshing state... [id=xieiwr] aws_api_gateway_model.schema_request: Refreshing state... [id=h6ryy8] aws_api_gateway_method.options["c4"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-OPTIONS] aws_api_gateway_method.this["c4-POST"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-POST] aws_api_gateway_method_response.options["c4"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_integration.options["c4"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-OPTIONS] aws_api_gateway_integration_response.options["c4"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_method_response.this["c4-POST"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-POST-200] aws_api_gateway_integration_response.this["c4-POST"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-POST-200] module.core_rendering_c4.aws_iam_role_policy_attachment.custom["arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg"]: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156196600000001] module.core_rendering_c4.aws_lambda_function.this: Refreshing state... [id=core-rendering-c4-stg] module.core_rendering_c4.aws_iam_role_policy_attachment.logs: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156203900000002] aws_lambda_permission.gw["c4-POST"]: Refreshing state... [id=InvokeGWMain-c4-POST] aws_api_gateway_deployment.this: Refreshing state... [id=lq2fu8] aws_api_gateway_integration.this["c4-POST"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-POST] aws_api_gateway_stage.this: Refreshing state... [id=ags-hl6yp94sy9-base] aws_api_gateway_base_path_mapping.this: Refreshing state... [id=api.stage.diagramastext.dev/] aws_api_gateway_usage_plan.test: Refreshing state... [id=4v5ye3] aws_api_gateway_usage_plan_key.main: Refreshing state... [id=0iz5rl9ff4] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place +/- create replacement and then destroy Terraform will perform the following actions: # aws_api_gateway_deployment.this must be replaced +/- resource "aws_api_gateway_deployment" "this" { ~ created_date = "2023-02-26T13:45:20Z" -> (known after apply) ~ execution_arn = "arn:aws:execute-api:us-east-2:027889758114:hl6yp94sy9/" -> (known after apply) ~ id = "lq2fu8" -> (known after apply) ~ invoke_url = "https://hl6yp94sy9.execute-api.us-east-2.amazonaws.com/" -> (known after apply) ~ triggers = { # forces replacement ~ "redeployment" = "a0d35bd612ed446b6fca7d9603e5083e78ed2694" -> "2357af20be26c101fd760ce053bb3657f567fefd" } # (1 unchanged attribute hidden) } # aws_api_gateway_stage.this will be updated in-place ~ resource "aws_api_gateway_stage" "this" { ~ deployment_id = "lq2fu8" -> (known after apply) id = "ags-hl6yp94sy9-base" tags = {} # (10 unchanged attributes hidden) # (1 unchanged block hidden) } # module.core_rendering_c4.aws_lambda_function.this will be updated in-place ~ resource "aws_lambda_function" "this" { ~ filename = "/Users/dkisler/projects/diagramastext/server/deployment/modules/lambda/bin/core-rendering-c4-stg-eb73a194af29c438993da68be2108f77.zip" -> "/home/runner/work/diagramastext/diagramastext/server/deployment/modules/lambda/bin/core-rendering-c4-stg-cbb3dcc1ad61c1273587210c8693b60f.zip" id = "core-rendering-c4-stg" ~ last_modified = "2023-02-26T13:35:26.964+0000" -> (known after apply) tags = { "environment" = "staging" "in_deprecation" = "true" "system" = "mono:core+rendering-c4" } # (19 unchanged attributes hidden) # (3 unchanged blocks hidden) } # module.core_rendering_c4.null_resource.this must be replaced +/- resource "null_resource" "this" { ~ id = "6710239539001995364" -> (known after apply) ~ triggers = { # forces replacement ~ "md5" = "eb73a194af29c438993da68be2108f77" -> "cbb3dcc1ad61c1273587210c8693b60f" ~ "name" = "core-rendering-c4-stg-eb73a194af29c438993da68be2108f77.zip" -> "core-rendering-c4-stg-cbb3dcc1ad61c1273587210c8693b60f.zip" } } Plan: 2 to add, 2 to change, 2 to destroy. ───────────────────────────────────────────────────────────────────────────── Saved the plan to: /tmp/terraform.tfplan To perform exactly these actions, run the following command to apply: terraform apply "/tmp/terraform.tfplan" ```

Pusher: @kislerdm, Action: pull_request, Workflow: Deploy:Server

github-actions[bot] commented 1 year ago

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output ``` Success! The configuration is valid.  ```

Terraform Plan 📖success

Show Plan ``` data.aws_iam_policy_document.core_rendering_c4_secret: Reading... aws_api_gateway_rest_api.this: Refreshing state... [id=hl6yp94sy9] aws_api_gateway_domain_name.this: Refreshing state... [id=api.stage.diagramastext.dev] aws_api_gateway_api_key.main: Refreshing state... [id=0iz5rl9ff4] data.aws_iam_policy_document.core_rendering_c4_secret: Read complete after 0s [id=2412329430] aws_iam_policy.core_rendering_c4_secret: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg] module.core_rendering_c4.null_resource.this: Refreshing state... [id=6710239539001995364] module.core_rendering_c4.aws_iam_role.this: Refreshing state... [id=LambdaRolecore-rendering-c4-stg] module.core_rendering_c4.aws_cloudwatch_log_group.logs: Refreshing state... [id=/aws/lambda/core-rendering-c4-stg] module.core_rendering_c4.data.aws_iam_policy_document.logs: Reading... module.core_rendering_c4.data.aws_iam_policy_document.logs: Read complete after 0s [id=3830842054] module.core_rendering_c4.aws_iam_policy.logs: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaPolicyLogs-core-rendering-c4-stg] aws_api_gateway_model.schema_response: Refreshing state... [id=2wvhiv] aws_api_gateway_resource.route_top["c4"]: Refreshing state... [id=xieiwr] aws_api_gateway_request_validator.this: Refreshing state... [id=tq63jc] aws_api_gateway_model.schema_request: Refreshing state... [id=h6ryy8] aws_cloudwatch_log_group.gw: Refreshing state... [id=API-Gateway-Execution-Logs_hl6yp94sy9] aws_api_gateway_method.options["c4"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-OPTIONS] aws_api_gateway_method.this["c4-POST"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-POST] aws_api_gateway_method_response.options["c4"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_integration_response.options["c4"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_integration.options["c4"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-OPTIONS] aws_api_gateway_method_response.this["c4-POST"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-POST-200] aws_api_gateway_integration_response.this["c4-POST"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-POST-200] module.core_rendering_c4.aws_iam_role_policy_attachment.logs: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156203900000002] module.core_rendering_c4.aws_iam_role_policy_attachment.custom["arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg"]: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156196600000001] module.core_rendering_c4.aws_lambda_function.this: Refreshing state... [id=core-rendering-c4-stg] aws_api_gateway_deployment.this: Refreshing state... [id=lq2fu8] aws_api_gateway_integration.this["c4-POST"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-POST] aws_lambda_permission.gw["c4-POST"]: Refreshing state... [id=InvokeGWMain-c4-POST] aws_api_gateway_stage.this: Refreshing state... [id=ags-hl6yp94sy9-base] aws_api_gateway_base_path_mapping.this: Refreshing state... [id=api.stage.diagramastext.dev/] aws_api_gateway_usage_plan.test: Refreshing state... [id=4v5ye3] aws_api_gateway_usage_plan_key.main: Refreshing state... [id=0iz5rl9ff4] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place +/- create replacement and then destroy Terraform will perform the following actions: # aws_api_gateway_deployment.this must be replaced +/- resource "aws_api_gateway_deployment" "this" { ~ created_date = "2023-02-26T13:45:20Z" -> (known after apply) ~ execution_arn = "arn:aws:execute-api:us-east-2:027889758114:hl6yp94sy9/" -> (known after apply) ~ id = "lq2fu8" -> (known after apply) ~ invoke_url = "https://hl6yp94sy9.execute-api.us-east-2.amazonaws.com/" -> (known after apply) ~ triggers = { # forces replacement ~ "redeployment" = "a0d35bd612ed446b6fca7d9603e5083e78ed2694" -> "2357af20be26c101fd760ce053bb3657f567fefd" } # (1 unchanged attribute hidden) } # aws_api_gateway_stage.this will be updated in-place ~ resource "aws_api_gateway_stage" "this" { ~ deployment_id = "lq2fu8" -> (known after apply) id = "ags-hl6yp94sy9-base" tags = {} # (10 unchanged attributes hidden) # (1 unchanged block hidden) } # module.core_rendering_c4.aws_lambda_function.this will be updated in-place ~ resource "aws_lambda_function" "this" { ~ filename = "/Users/dkisler/projects/diagramastext/server/deployment/modules/lambda/bin/core-rendering-c4-stg-eb73a194af29c438993da68be2108f77.zip" -> "/home/runner/work/diagramastext/diagramastext/server/deployment/modules/lambda/bin/core-rendering-c4-stg-cbb3dcc1ad61c1273587210c8693b60f.zip" id = "core-rendering-c4-stg" ~ last_modified = "2023-02-26T13:35:26.964+0000" -> (known after apply) tags = { "environment" = "staging" "in_deprecation" = "true" "system" = "mono:core+rendering-c4" } # (19 unchanged attributes hidden) # (3 unchanged blocks hidden) } # module.core_rendering_c4.null_resource.this must be replaced +/- resource "null_resource" "this" { ~ id = "6710239539001995364" -> (known after apply) ~ triggers = { # forces replacement ~ "md5" = "eb73a194af29c438993da68be2108f77" -> "cbb3dcc1ad61c1273587210c8693b60f" ~ "name" = "core-rendering-c4-stg-eb73a194af29c438993da68be2108f77.zip" -> "core-rendering-c4-stg-cbb3dcc1ad61c1273587210c8693b60f.zip" } } Plan: 2 to add, 2 to change, 2 to destroy. ───────────────────────────────────────────────────────────────────────────── Saved the plan to: /tmp/terraform.tfplan To perform exactly these actions, run the following command to apply: terraform apply "/tmp/terraform.tfplan" ```

Pusher: @kislerdm, Action: pull_request, Workflow: Deploy:Server

github-actions[bot] commented 1 year ago

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output ``` Success! The configuration is valid.  ```

Terraform Plan 📖success

Show Plan ``` data.aws_iam_policy_document.core_rendering_c4_secret: Reading... aws_api_gateway_domain_name.this: Refreshing state... [id=api.stage.diagramastext.dev] aws_api_gateway_api_key.main: Refreshing state... [id=0iz5rl9ff4] aws_api_gateway_rest_api.this: Refreshing state... [id=hl6yp94sy9] data.aws_iam_policy_document.core_rendering_c4_secret: Read complete after 0s [id=2412329430] aws_iam_policy.core_rendering_c4_secret: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg] module.core_rendering_c4.null_resource.this: Refreshing state... [id=6710239539001995364] module.core_rendering_c4.aws_iam_role.this: Refreshing state... [id=LambdaRolecore-rendering-c4-stg] module.core_rendering_c4.data.aws_iam_policy_document.logs: Reading... module.core_rendering_c4.aws_cloudwatch_log_group.logs: Refreshing state... [id=/aws/lambda/core-rendering-c4-stg] module.core_rendering_c4.data.aws_iam_policy_document.logs: Read complete after 0s [id=3830842054] module.core_rendering_c4.aws_iam_policy.logs: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaPolicyLogs-core-rendering-c4-stg] aws_cloudwatch_log_group.gw: Refreshing state... [id=API-Gateway-Execution-Logs_hl6yp94sy9] aws_api_gateway_model.schema_response: Refreshing state... [id=2wvhiv] aws_api_gateway_resource.route_top["c4"]: Refreshing state... [id=xieiwr] aws_api_gateway_model.schema_request: Refreshing state... [id=h6ryy8] aws_api_gateway_request_validator.this: Refreshing state... [id=tq63jc] module.core_rendering_c4.aws_iam_role_policy_attachment.custom["arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg"]: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156196600000001] module.core_rendering_c4.aws_lambda_function.this: Refreshing state... [id=core-rendering-c4-stg] module.core_rendering_c4.aws_iam_role_policy_attachment.logs: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156203900000002] aws_api_gateway_method.options["c4"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-OPTIONS] aws_api_gateway_method.this["c4-POST"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-POST] aws_api_gateway_integration_response.options["c4"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_method_response.options["c4"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_integration.options["c4"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-OPTIONS] aws_api_gateway_method_response.this["c4-POST"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-POST-200] aws_api_gateway_integration_response.this["c4-POST"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-POST-200] aws_api_gateway_integration.this["c4-POST"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-POST] aws_api_gateway_deployment.this: Refreshing state... [id=lq2fu8] aws_lambda_permission.gw["c4-POST"]: Refreshing state... [id=InvokeGWMain-c4-POST] aws_api_gateway_stage.this: Refreshing state... [id=ags-hl6yp94sy9-base] aws_api_gateway_base_path_mapping.this: Refreshing state... [id=api.stage.diagramastext.dev/] aws_api_gateway_usage_plan.test: Refreshing state... [id=4v5ye3] aws_api_gateway_usage_plan_key.main: Refreshing state... [id=0iz5rl9ff4] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place +/- create replacement and then destroy Terraform will perform the following actions: # aws_api_gateway_deployment.this must be replaced +/- resource "aws_api_gateway_deployment" "this" { ~ created_date = "2023-02-26T13:45:20Z" -> (known after apply) ~ execution_arn = "arn:aws:execute-api:us-east-2:027889758114:hl6yp94sy9/" -> (known after apply) ~ id = "lq2fu8" -> (known after apply) ~ invoke_url = "https://hl6yp94sy9.execute-api.us-east-2.amazonaws.com/" -> (known after apply) ~ triggers = { # forces replacement ~ "redeployment" = "a0d35bd612ed446b6fca7d9603e5083e78ed2694" -> "6bec06542faa960a16fd7486ae386aaa6a21a507" } # (1 unchanged attribute hidden) } # aws_api_gateway_stage.this will be updated in-place ~ resource "aws_api_gateway_stage" "this" { ~ deployment_id = "lq2fu8" -> (known after apply) id = "ags-hl6yp94sy9-base" tags = {} # (10 unchanged attributes hidden) # (1 unchanged block hidden) } # module.core_rendering_c4.aws_lambda_function.this will be updated in-place ~ resource "aws_lambda_function" "this" { ~ filename = "/Users/dkisler/projects/diagramastext/server/deployment/modules/lambda/bin/core-rendering-c4-stg-eb73a194af29c438993da68be2108f77.zip" -> "/home/runner/work/diagramastext/diagramastext/server/deployment/modules/lambda/bin/core-rendering-c4-stg-6db2dd79326e708d9aadc9317466d92a.zip" id = "core-rendering-c4-stg" ~ last_modified = "2023-02-26T13:35:26.964+0000" -> (known after apply) tags = { "environment" = "staging" "in_deprecation" = "true" "system" = "mono:core+rendering-c4" } # (19 unchanged attributes hidden) # (3 unchanged blocks hidden) } # module.core_rendering_c4.null_resource.this must be replaced +/- resource "null_resource" "this" { ~ id = "6710239539001995364" -> (known after apply) ~ triggers = { # forces replacement ~ "md5" = "eb73a194af29c438993da68be2108f77" -> "6db2dd79326e708d9aadc9317466d92a" ~ "name" = "core-rendering-c4-stg-eb73a194af29c438993da68be2108f77.zip" -> "core-rendering-c4-stg-6db2dd79326e708d9aadc9317466d92a.zip" } } Plan: 2 to add, 2 to change, 2 to destroy. ───────────────────────────────────────────────────────────────────────────── Saved the plan to: /tmp/terraform.tfplan To perform exactly these actions, run the following command to apply: terraform apply "/tmp/terraform.tfplan" ```

Pusher: @kislerdm, Action: pull_request, Workflow: Deploy:Server

github-actions[bot] commented 1 year ago

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output ``` Success! The configuration is valid.  ```

Terraform Plan 📖success

Show Plan ``` aws_api_gateway_api_key.main: Refreshing state... [id=0iz5rl9ff4] data.aws_iam_policy_document.core_rendering_c4_secret: Reading... aws_api_gateway_rest_api.this: Refreshing state... [id=hl6yp94sy9] aws_api_gateway_domain_name.this: Refreshing state... [id=api.stage.diagramastext.dev] data.aws_iam_policy_document.core_rendering_c4_secret: Read complete after 0s [id=2412329430] aws_iam_policy.core_rendering_c4_secret: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg] module.core_rendering_c4.aws_cloudwatch_log_group.logs: Refreshing state... [id=/aws/lambda/core-rendering-c4-stg] module.core_rendering_c4.null_resource.this: Refreshing state... [id=5911690965036928812] module.core_rendering_c4.data.aws_iam_policy_document.logs: Reading... module.core_rendering_c4.data.aws_iam_policy_document.logs: Read complete after 0s [id=3830842054] module.core_rendering_c4.aws_iam_role.this: Refreshing state... [id=LambdaRolecore-rendering-c4-stg] module.core_rendering_c4.aws_iam_policy.logs: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaPolicyLogs-core-rendering-c4-stg] aws_cloudwatch_log_group.gw: Refreshing state... [id=API-Gateway-Execution-Logs_hl6yp94sy9] aws_api_gateway_request_validator.this: Refreshing state... [id=tq63jc] aws_api_gateway_resource.route_top["c4"]: Refreshing state... [id=xieiwr] aws_api_gateway_model.schema_response: Refreshing state... [id=2wvhiv] aws_api_gateway_model.schema_request: Refreshing state... [id=h6ryy8] aws_api_gateway_method.options["c4"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-OPTIONS] aws_api_gateway_method.this["c4-POST"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-POST] aws_api_gateway_integration.options["c4"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-OPTIONS] aws_api_gateway_integration_response.options["c4"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_method_response.options["c4"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_method_response.this["c4-POST"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-POST-200] aws_api_gateway_integration_response.this["c4-POST"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-POST-200] module.core_rendering_c4.aws_iam_role_policy_attachment.logs: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156203900000002] module.core_rendering_c4.aws_iam_role_policy_attachment.custom["arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg"]: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156196600000001] module.core_rendering_c4.aws_lambda_function.this: Refreshing state... [id=core-rendering-c4-stg] aws_api_gateway_integration.this["c4-POST"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-POST] aws_lambda_permission.gw["c4-POST"]: Refreshing state... [id=InvokeGWMain-c4-POST] aws_api_gateway_deployment.this: Refreshing state... [id=j414vd] aws_api_gateway_stage.this: Refreshing state... [id=ags-hl6yp94sy9-base] aws_api_gateway_usage_plan.test: Refreshing state... [id=4v5ye3] aws_api_gateway_base_path_mapping.this: Refreshing state... [id=api.stage.diagramastext.dev/] aws_api_gateway_usage_plan_key.main: Refreshing state... [id=0iz5rl9ff4] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place +/- create replacement and then destroy Terraform will perform the following actions: # aws_api_gateway_deployment.this must be replaced +/- resource "aws_api_gateway_deployment" "this" { ~ created_date = "2023-03-03T13:24:42Z" -> (known after apply) ~ execution_arn = "arn:aws:execute-api:us-east-2:027889758114:hl6yp94sy9/" -> (known after apply) ~ id = "j414vd" -> (known after apply) ~ invoke_url = "https://hl6yp94sy9.execute-api.us-east-2.amazonaws.com/" -> (known after apply) ~ triggers = { # forces replacement ~ "redeployment" = "548f3294e65ec7cb1053a9ac5fd3d953e17dd2cc" -> "11125b98d96fce025228fc6c946b93ce978f1b3f" } # (1 unchanged attribute hidden) } # aws_api_gateway_stage.this will be updated in-place ~ resource "aws_api_gateway_stage" "this" { ~ deployment_id = "j414vd" -> (known after apply) id = "ags-hl6yp94sy9-base" tags = {} # (10 unchanged attributes hidden) # (1 unchanged block hidden) } # module.core_rendering_c4.aws_lambda_function.this will be updated in-place ~ resource "aws_lambda_function" "this" { ~ filename = "/Users/dkisler/projects/diagramastext/server/core/deployment/modules/lambda/bin/core-rendering-c4-stg-a72acfbf114d8a651464729463f105dd.zip" -> "/home/runner/work/diagramastext/diagramastext/server/core/deployment/modules/lambda/bin/core-rendering-c4-stg-fc3cebc41b753c676d33484b14b51d60.zip" id = "core-rendering-c4-stg" ~ last_modified = "2023-03-03T13:24:35.000+0000" -> (known after apply) + skip_destroy = false tags = { "backend" = "c4containers" "environment" = "staging" "system" = "core" } # (19 unchanged attributes hidden) # (3 unchanged blocks hidden) } # module.core_rendering_c4.null_resource.this must be replaced +/- resource "null_resource" "this" { ~ id = "5911690965036928812" -> (known after apply) ~ triggers = { # forces replacement ~ "md5" = "a72acfbf114d8a651464729463f105dd" -> "fc3cebc41b753c676d33484b14b51d60" ~ "name" = "core-rendering-c4-stg-a72acfbf114d8a651464729463f105dd.zip" -> "core-rendering-c4-stg-fc3cebc41b753c676d33484b14b51d60.zip" } } Plan: 2 to add, 2 to change, 2 to destroy. ───────────────────────────────────────────────────────────────────────────── Saved the plan to: /tmp/terraform.tfplan To perform exactly these actions, run the following command to apply: terraform apply "/tmp/terraform.tfplan" ```

Pusher: @kislerdm, Action: pull_request, Workflow: Deploy:Server

github-actions[bot] commented 1 year ago

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output ``` Success! The configuration is valid.  ```

Terraform Plan 📖success

Show Plan ``` aws_api_gateway_api_key.main: Refreshing state... [id=0iz5rl9ff4] data.aws_iam_policy_document.core_rendering_c4_secret: Reading... aws_api_gateway_rest_api.this: Refreshing state... [id=hl6yp94sy9] aws_api_gateway_domain_name.this: Refreshing state... [id=api.stage.diagramastext.dev] data.aws_iam_policy_document.core_rendering_c4_secret: Read complete after 0s [id=2412329430] aws_iam_policy.core_rendering_c4_secret: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg] module.core_rendering_c4.null_resource.this: Refreshing state... [id=2770224977690875530] module.core_rendering_c4.aws_cloudwatch_log_group.logs: Refreshing state... [id=/aws/lambda/core-rendering-c4-stg] module.core_rendering_c4.aws_iam_role.this: Refreshing state... [id=LambdaRolecore-rendering-c4-stg] module.core_rendering_c4.data.aws_iam_policy_document.logs: Reading... module.core_rendering_c4.data.aws_iam_policy_document.logs: Read complete after 0s [id=3830842054] module.core_rendering_c4.aws_iam_policy.logs: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaPolicyLogs-core-rendering-c4-stg] module.core_rendering_c4.aws_iam_role_policy_attachment.custom["arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg"]: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156196600000001] module.core_rendering_c4.aws_lambda_function.this: Refreshing state... [id=core-rendering-c4-stg] module.core_rendering_c4.aws_iam_role_policy_attachment.logs: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156203900000002] aws_api_gateway_resource.route_top["c4"]: Refreshing state... [id=xieiwr] aws_api_gateway_request_validator.this: Refreshing state... [id=tq63jc] aws_api_gateway_model.schema_request: Refreshing state... [id=h6ryy8] aws_lambda_permission.gw["c4-POST"]: Refreshing state... [id=InvokeGWMain-c4-POST] aws_cloudwatch_log_group.gw: Refreshing state... [id=API-Gateway-Execution-Logs_hl6yp94sy9] aws_api_gateway_model.schema_response: Refreshing state... [id=2wvhiv] aws_api_gateway_method.this["c4-POST"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-POST] aws_api_gateway_method.options["c4"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-OPTIONS] aws_api_gateway_deployment.this: Refreshing state... [id=dcwp42] aws_api_gateway_integration_response.this["c4-POST"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-POST-200] aws_api_gateway_method_response.this["c4-POST"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-POST-200] aws_api_gateway_integration.this["c4-POST"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-POST] aws_api_gateway_method_response.options["c4"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_integration_response.options["c4"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_integration.options["c4"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-OPTIONS] aws_api_gateway_stage.this: Refreshing state... [id=ags-hl6yp94sy9-base] aws_api_gateway_usage_plan.test: Refreshing state... [id=4v5ye3] aws_api_gateway_base_path_mapping.this: Refreshing state... [id=api.stage.diagramastext.dev/] aws_api_gateway_usage_plan_key.main: Refreshing state... [id=0iz5rl9ff4] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place Terraform will perform the following actions: # module.core_rendering_c4.aws_lambda_function.this will be updated in-place ~ resource "aws_lambda_function" "this" { ~ filename = "/Users/dkisler/projects/diagramastext/server/core/deployment/modules/lambda/bin/core-rendering-c4-stg-676acaff3ccb857dbd78caab25919a47.zip" -> "/home/runner/work/diagramastext/diagramastext/server/core/deployment/modules/lambda/bin/core-rendering-c4-stg-676acaff3ccb857dbd78caab25919a47.zip" id = "core-rendering-c4-stg" ~ last_modified = "2023-03-03T23:34:28.000+0000" -> (known after apply) + skip_destroy = false tags = { "backend" = "c4containers" "environment" = "staging" "system" = "core" } # (19 unchanged attributes hidden) # (3 unchanged blocks hidden) } Plan: 0 to add, 1 to change, 0 to destroy. ───────────────────────────────────────────────────────────────────────────── Saved the plan to: /tmp/terraform.tfplan To perform exactly these actions, run the following command to apply: terraform apply "/tmp/terraform.tfplan" ```

Pusher: @kislerdm, Action: pull_request, Workflow: Deploy:Server

github-actions[bot] commented 1 year ago

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output ``` Success! The configuration is valid.  ```

Terraform Plan 📖success

Show Plan ``` aws_api_gateway_rest_api.this: Refreshing state... [id=hl6yp94sy9] aws_api_gateway_api_key.main: Refreshing state... [id=0iz5rl9ff4] data.aws_iam_policy_document.core_rendering_c4_secret: Reading... aws_api_gateway_domain_name.this: Refreshing state... [id=api.stage.diagramastext.dev] data.aws_iam_policy_document.core_rendering_c4_secret: Read complete after 0s [id=2412329430] aws_iam_policy.core_rendering_c4_secret: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg] module.core_rendering_c4.aws_cloudwatch_log_group.logs: Refreshing state... [id=/aws/lambda/core-rendering-c4-stg] module.core_rendering_c4.data.aws_iam_policy_document.logs: Reading... module.core_rendering_c4.null_resource.this: Refreshing state... [id=2770224977690875530] module.core_rendering_c4.aws_iam_role.this: Refreshing state... [id=LambdaRolecore-rendering-c4-stg] module.core_rendering_c4.data.aws_iam_policy_document.logs: Read complete after 0s [id=3830842054] module.core_rendering_c4.aws_iam_policy.logs: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaPolicyLogs-core-rendering-c4-stg] aws_api_gateway_resource.route_top["c4"]: Refreshing state... [id=xieiwr] aws_api_gateway_model.schema_response: Refreshing state... [id=2wvhiv] aws_api_gateway_request_validator.this: Refreshing state... [id=tq63jc] aws_api_gateway_model.schema_request: Refreshing state... [id=h6ryy8] aws_cloudwatch_log_group.gw: Refreshing state... [id=API-Gateway-Execution-Logs_hl6yp94sy9] module.core_rendering_c4.aws_iam_role_policy_attachment.custom["arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg"]: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156196600000001] module.core_rendering_c4.aws_lambda_function.this: Refreshing state... [id=core-rendering-c4-stg] module.core_rendering_c4.aws_iam_role_policy_attachment.logs: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156203900000002] aws_api_gateway_method.options["c4"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-OPTIONS] aws_api_gateway_method.this["c4-POST"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-POST] aws_api_gateway_integration_response.this["c4-POST"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-POST-200] aws_api_gateway_method_response.this["c4-POST"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-POST-200] aws_api_gateway_integration_response.options["c4"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_method_response.options["c4"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_integration.options["c4"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-OPTIONS] aws_lambda_permission.gw["c4-POST"]: Refreshing state... [id=InvokeGWMain-c4-POST] aws_api_gateway_integration.this["c4-POST"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-POST] aws_api_gateway_deployment.this: Refreshing state... [id=dcwp42] aws_api_gateway_stage.this: Refreshing state... [id=ags-hl6yp94sy9-base] aws_api_gateway_base_path_mapping.this: Refreshing state... [id=api.stage.diagramastext.dev/] aws_api_gateway_usage_plan.test: Refreshing state... [id=4v5ye3] aws_api_gateway_usage_plan_key.main: Refreshing state... [id=0iz5rl9ff4] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place +/- create replacement and then destroy Terraform will perform the following actions: # aws_api_gateway_deployment.this must be replaced +/- resource "aws_api_gateway_deployment" "this" { ~ created_date = "2023-03-03T23:34:34Z" -> (known after apply) ~ execution_arn = "arn:aws:execute-api:us-east-2:027889758114:hl6yp94sy9/" -> (known after apply) ~ id = "dcwp42" -> (known after apply) ~ invoke_url = "https://hl6yp94sy9.execute-api.us-east-2.amazonaws.com/" -> (known after apply) ~ triggers = { # forces replacement ~ "redeployment" = "aa1d57fa5a31cf8c6c33ff6e80b8f588d38ac4f2" -> "b6412472e4ba7322656ddebabb5ad5ae345021e9" } # (1 unchanged attribute hidden) } # aws_api_gateway_stage.this will be updated in-place ~ resource "aws_api_gateway_stage" "this" { ~ deployment_id = "dcwp42" -> (known after apply) id = "ags-hl6yp94sy9-base" tags = {} # (10 unchanged attributes hidden) # (1 unchanged block hidden) } # module.core_rendering_c4.aws_lambda_function.this will be updated in-place ~ resource "aws_lambda_function" "this" { ~ filename = "/Users/dkisler/projects/diagramastext/server/core/deployment/modules/lambda/bin/core-rendering-c4-stg-676acaff3ccb857dbd78caab25919a47.zip" -> "/home/runner/work/diagramastext/diagramastext/server/core/deployment/modules/lambda/bin/core-rendering-c4-stg-36c2435df168259d7e493f3798af579a.zip" id = "core-rendering-c4-stg" ~ last_modified = "2023-03-03T23:34:28.000+0000" -> (known after apply) + skip_destroy = false tags = { "backend" = "c4containers" "environment" = "staging" "system" = "core" } # (19 unchanged attributes hidden) # (3 unchanged blocks hidden) } # module.core_rendering_c4.null_resource.this must be replaced +/- resource "null_resource" "this" { ~ id = "2770224977690875530" -> (known after apply) ~ triggers = { # forces replacement ~ "md5" = "676acaff3ccb857dbd78caab25919a47" -> "36c2435df168259d7e493f3798af579a" ~ "name" = "core-rendering-c4-stg-676acaff3ccb857dbd78caab25919a47.zip" -> "core-rendering-c4-stg-36c2435df168259d7e493f3798af579a.zip" } } Plan: 2 to add, 2 to change, 2 to destroy. ───────────────────────────────────────────────────────────────────────────── Saved the plan to: /tmp/terraform.tfplan To perform exactly these actions, run the following command to apply: terraform apply "/tmp/terraform.tfplan" ```

Pusher: @kislerdm, Action: pull_request, Workflow: Deploy:Server

github-actions[bot] commented 1 year ago

Terraform Initialization ⚙️success

Terraform Validation 🤖success

Validation Output ``` Success! The configuration is valid.  ```

Terraform Plan 📖success

Show Plan ``` aws_api_gateway_domain_name.this: Refreshing state... [id=api.stage.diagramastext.dev] aws_api_gateway_rest_api.this: Refreshing state... [id=hl6yp94sy9] aws_api_gateway_api_key.main: Refreshing state... [id=0iz5rl9ff4] data.aws_iam_policy_document.core_rendering_c4_secret: Reading... data.aws_iam_policy_document.core_rendering_c4_secret: Read complete after 0s [id=2412329430] aws_iam_policy.core_rendering_c4_secret: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg] aws_api_gateway_model.schema_request: Refreshing state... [id=h6ryy8] aws_api_gateway_request_validator.this: Refreshing state... [id=tq63jc] aws_api_gateway_model.schema_response: Refreshing state... [id=2wvhiv] module.core_rendering_c4.null_resource.this: Refreshing state... [id=2770224977690875530] module.core_rendering_c4.aws_cloudwatch_log_group.logs: Refreshing state... [id=/aws/lambda/core-rendering-c4-stg] module.core_rendering_c4.aws_iam_role.this: Refreshing state... [id=LambdaRolecore-rendering-c4-stg] module.core_rendering_c4.data.aws_iam_policy_document.logs: Reading... aws_cloudwatch_log_group.gw: Refreshing state... [id=API-Gateway-Execution-Logs_hl6yp94sy9] aws_api_gateway_resource.route_top["c4"]: Refreshing state... [id=xieiwr] module.core_rendering_c4.data.aws_iam_policy_document.logs: Read complete after 0s [id=3830842054] module.core_rendering_c4.aws_iam_policy.logs: Refreshing state... [id=arn:aws:iam::027889758114:policy/LambdaPolicyLogs-core-rendering-c4-stg] aws_api_gateway_method.this["c4-POST"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-POST] aws_api_gateway_method.options["c4"]: Refreshing state... [id=agm-hl6yp94sy9-xieiwr-OPTIONS] aws_api_gateway_integration_response.this["c4-POST"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-POST-200] aws_api_gateway_method_response.this["c4-POST"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-POST-200] aws_api_gateway_method_response.options["c4"]: Refreshing state... [id=agmr-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_integration_response.options["c4"]: Refreshing state... [id=agir-hl6yp94sy9-xieiwr-OPTIONS-200] aws_api_gateway_integration.options["c4"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-OPTIONS] module.core_rendering_c4.aws_iam_role_policy_attachment.custom["arn:aws:iam::027889758114:policy/LambdaCoreRenderingC4-stg"]: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156196600000001] module.core_rendering_c4.aws_iam_role_policy_attachment.logs: Refreshing state... [id=LambdaRolecore-rendering-c4-stg-20230226133156203900000002] module.core_rendering_c4.aws_lambda_function.this: Refreshing state... [id=core-rendering-c4-stg] aws_api_gateway_integration.this["c4-POST"]: Refreshing state... [id=agi-hl6yp94sy9-xieiwr-POST] aws_api_gateway_deployment.this: Refreshing state... [id=dcwp42] aws_lambda_permission.gw["c4-POST"]: Refreshing state... [id=InvokeGWMain-c4-POST] aws_api_gateway_stage.this: Refreshing state... [id=ags-hl6yp94sy9-base] aws_api_gateway_base_path_mapping.this: Refreshing state... [id=api.stage.diagramastext.dev/] aws_api_gateway_usage_plan.test: Refreshing state... [id=4v5ye3] aws_api_gateway_usage_plan_key.main: Refreshing state... [id=0iz5rl9ff4] Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: ~ update in-place +/- create replacement and then destroy Terraform will perform the following actions: # aws_api_gateway_deployment.this must be replaced +/- resource "aws_api_gateway_deployment" "this" { ~ created_date = "2023-03-03T23:34:34Z" -> (known after apply) ~ execution_arn = "arn:aws:execute-api:us-east-2:027889758114:hl6yp94sy9/" -> (known after apply) ~ id = "dcwp42" -> (known after apply) ~ invoke_url = "https://hl6yp94sy9.execute-api.us-east-2.amazonaws.com/" -> (known after apply) ~ triggers = { # forces replacement ~ "redeployment" = "aa1d57fa5a31cf8c6c33ff6e80b8f588d38ac4f2" -> "b6412472e4ba7322656ddebabb5ad5ae345021e9" } # (1 unchanged attribute hidden) } # aws_api_gateway_stage.this will be updated in-place ~ resource "aws_api_gateway_stage" "this" { ~ deployment_id = "dcwp42" -> (known after apply) id = "ags-hl6yp94sy9-base" tags = {} # (10 unchanged attributes hidden) # (1 unchanged block hidden) } # module.core_rendering_c4.aws_lambda_function.this will be updated in-place ~ resource "aws_lambda_function" "this" { ~ filename = "/Users/dkisler/projects/diagramastext/server/core/deployment/modules/lambda/bin/core-rendering-c4-stg-676acaff3ccb857dbd78caab25919a47.zip" -> "/home/runner/work/diagramastext/diagramastext/server/core/deployment/modules/lambda/bin/core-rendering-c4-stg-36c2435df168259d7e493f3798af579a.zip" id = "core-rendering-c4-stg" ~ last_modified = "2023-03-03T23:34:28.000+0000" -> (known after apply) + skip_destroy = false tags = { "backend" = "c4containers" "environment" = "staging" "system" = "core" } # (19 unchanged attributes hidden) # (3 unchanged blocks hidden) } # module.core_rendering_c4.null_resource.this must be replaced +/- resource "null_resource" "this" { ~ id = "2770224977690875530" -> (known after apply) ~ triggers = { # forces replacement ~ "md5" = "676acaff3ccb857dbd78caab25919a47" -> "36c2435df168259d7e493f3798af579a" ~ "name" = "core-rendering-c4-stg-676acaff3ccb857dbd78caab25919a47.zip" -> "core-rendering-c4-stg-36c2435df168259d7e493f3798af579a.zip" } } Plan: 2 to add, 2 to change, 2 to destroy. ───────────────────────────────────────────────────────────────────────────── Saved the plan to: /tmp/terraform.tfplan To perform exactly these actions, run the following command to apply: terraform apply "/tmp/terraform.tfplan" ```

Pusher: @kislerdm, Action: pull_request, Workflow: Deploy:Server