Skip to content

infra: adicionar endpoint para listar certificados por email - #57

Merged
maxsonferovante merged 1 commit into
mainfrom
codex/migrate-lambdas-to-zip
Jun 26, 2026
Merged

infra: adicionar endpoint para listar certificados por email#57
maxsonferovante merged 1 commit into
mainfrom
codex/migrate-lambdas-to-zip

Conversation

@maxsonferovante

Copy link
Copy Markdown
Contributor

No description provided.

@maxsonferovante maxsonferovante self-assigned this Jun 26, 2026
@github-actions

Copy link
Copy Markdown

Terraform Plan (dev)

Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
  ~ update in-place
+/- create replacement and then destroy

Terraform will perform the following actions:

  # module.api_gateway.aws_api_gateway_deployment.api_deployment must be replaced
+/- resource "aws_api_gateway_deployment" "api_deployment" {
      ~ created_date = "2026-06-22T00:36:02Z" -> (known after apply)
      ~ id           = "vleh0z" -> (known after apply)
      ~ triggers     = { # forces replacement
          ~ "redeployment" = "e74dfb9a1c06abee6f24c9b881aa7c4f9330031d" -> "e13658d1735a97c452f029ea3bd2bbb197308122"
        }
        # (3 unchanged attributes hidden)
    }

  # module.api_gateway.aws_api_gateway_integration.list_user_certificates_cors_integration will be created
  + resource "aws_api_gateway_integration" "list_user_certificates_cors_integration" {
      + cache_namespace      = (known after apply)
      + connection_type      = "INTERNET"
      + http_method          = "OPTIONS"
      + id                   = (known after apply)
      + passthrough_behavior = (known after apply)
      + region               = "us-east-1"
      + request_templates    = {
          + "application/json" = jsonencode(
                {
                  + statusCode = 200
                }
            )
        }
      + resource_id          = (known after apply)
      + rest_api_id          = "mpl8es0cb7"
      + timeout_milliseconds = 29000
      + type                 = "MOCK"
    }

  # module.api_gateway.aws_api_gateway_integration.list_user_certificates_integration will be created
  + resource "aws_api_gateway_integration" "list_user_certificates_integration" {
      + cache_namespace         = (known after apply)
      + connection_type         = "INTERNET"
      + http_method             = "GET"
      + id                      = (known after apply)
      + integration_http_method = "POST"
      + passthrough_behavior    = (known after apply)
      + region                  = "us-east-1"
      + resource_id             = (known after apply)
      + rest_api_id             = "mpl8es0cb7"
      + timeout_milliseconds    = 29000
      + type                    = "AWS_PROXY"
      + uri                     = "arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:334318883918:function:tech-floripa-certificates-api-dev/invocations"
    }

  # module.api_gateway.aws_api_gateway_integration_response.list_user_certificates_cors_integration_response will be created
  + resource "aws_api_gateway_integration_response" "list_user_certificates_cors_integration_response" {
      + http_method         = "OPTIONS"
      + id                  = (known after apply)
      + region              = "us-east-1"
      + resource_id         = (known after apply)
      + response_parameters = {
          + "method.response.header.Access-Control-Allow-Headers" = "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'"
          + "method.response.header.Access-Control-Allow-Methods" = "'GET,OPTIONS'"
          + "method.response.header.Access-Control-Allow-Origin"  = "'*'"
        }
      + rest_api_id         = "mpl8es0cb7"
      + status_code         = "200"
    }

  # module.api_gateway.aws_api_gateway_method.list_user_certificates_cors_method will be created
  + resource "aws_api_gateway_method" "list_user_certificates_cors_method" {
      + api_key_required = false
      + authorization    = "NONE"
      + http_method      = "OPTIONS"
      + id               = (known after apply)
      + region           = "us-east-1"
      + resource_id      = (known after apply)
      + rest_api_id      = "mpl8es0cb7"
    }

  # module.api_gateway.aws_api_gateway_method.list_user_certificates_method will be created
  + resource "aws_api_gateway_method" "list_user_certificates_method" {
      + api_key_required   = true
      + authorization      = "NONE"
      + http_method        = "GET"
      + id                 = (known after apply)
      + region             = "us-east-1"
      + request_parameters = {
          + "method.request.header.Content-Type" = true
          + "method.request.path.email"          = true
          + "method.request.querystring.success" = false
        }
      + resource_id        = (known after apply)
      + rest_api_id        = "mpl8es0cb7"
    }

  # module.api_gateway.aws_api_gateway_method_response.list_user_certificates_cors_response will be created
  + resource "aws_api_gateway_method_response" "list_user_certificates_cors_response" {
      + http_method         = "OPTIONS"
      + id                  = (known after apply)
      + region              = "us-east-1"
      + resource_id         = (known after apply)
      + response_parameters = {
          + "method.response.header.Access-Control-Allow-Headers" = true
          + "method.response.header.Access-Control-Allow-Methods" = true
          + "method.response.header.Access-Control-Allow-Origin"  = true
        }
      + rest_api_id         = "mpl8es0cb7"
      + status_code         = "200"
    }

  # module.api_gateway.aws_api_gateway_resource.user_certificates_resource will be created
  + resource "aws_api_gateway_resource" "user_certificates_resource" {
      + id          = (known after apply)
      + parent_id   = (known after apply)
      + path        = (known after apply)
      + path_part   = "certificates"
      + region      = "us-east-1"
      + rest_api_id = "mpl8es0cb7"
    }

  # module.api_gateway.aws_api_gateway_resource.user_email_resource will be created
  + resource "aws_api_gateway_resource" "user_email_resource" {
      + id          = (known after apply)
      + parent_id   = (known after apply)
      + path        = (known after apply)
      + path_part   = "{email}"
      + region      = "us-east-1"
      + rest_api_id = "mpl8es0cb7"
    }

  # module.api_gateway.aws_api_gateway_resource.users_resource will be created
  + resource "aws_api_gateway_resource" "users_resource" {
      + id          = (known after apply)
      + parent_id   = "hhaday"
      + path        = (known after apply)
      + path_part   = "users"
      + region      = "us-east-1"
      + rest_api_id = "mpl8es0cb7"
    }

  # module.api_gateway.aws_api_gateway_stage.api_stage will be updated in-place
  ~ resource "aws_api_gateway_stage" "api_stage" {
      ~ deployment_id         = "vleh0z" -> (known after apply)
        id                    = "ags-mpl8es0cb7-dev"
        tags                  = {
            "Environment" = "dev"
            "Name"        = "tech-floripa-certificates-api-stage-dev"
            "Project"     = "tech-floripa-certificates"
        }
        # (15 unchanged attributes hidden)
    }

Plan: 10 to add, 1 to change, 1 to destroy.

@github-actions

Copy link
Copy Markdown

Terraform Plan (shared)

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

@maxsonferovante
maxsonferovante merged commit 08b63b0 into main Jun 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant