Skip to content

Conversation

@maxsonferovante
Copy link
Contributor

… API key requirement

@maxsonferovante maxsonferovante self-assigned this Dec 6, 2025
@github-actions
Copy link

github-actions bot commented Dec 6, 2025

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.

@github-actions
Copy link

github-actions bot commented Dec 6, 2025

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 = "2025-12-02T15:52:23Z" -> (known after apply)
      ~ id           = "er4f8e" -> (known after apply)
      ~ triggers     = { # forces replacement
          ~ "redeployment" = "9076627741e35e8aaf22476fa6ac9a14dc530325" -> "e74dfb9a1c06abee6f24c9b881aa7c4f9330031d"
        }
        # (3 unchanged attributes hidden)
    }

  # module.api_gateway.aws_api_gateway_integration.cors_integrations["api-v1-certificate-create-batch"] will be created
  + resource "aws_api_gateway_integration" "cors_integrations" {
      + 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.lambda_integrations["api-v1-certificate-create-batch"] will be created
  + resource "aws_api_gateway_integration" "lambda_integrations" {
      + cache_namespace         = (known after apply)
      + connection_type         = "INTERNET"
      + http_method             = "POST"
      + 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.cors_integration_responses["api-v1-certificate-create-batch"] will be created
  + resource "aws_api_gateway_integration_response" "cors_integration_responses" {
      + 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" = "'POST,OPTIONS'"
          + "method.response.header.Access-Control-Allow-Origin"  = "'*'"
        }
      + rest_api_id         = "mpl8es0cb7"
      + status_code         = "200"
    }

  # module.api_gateway.aws_api_gateway_method.cors_methods["api-v1-certificate-create-batch"] will be created
  + resource "aws_api_gateway_method" "cors_methods" {
      + 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.endpoint_methods["api-v1-certificate-create-batch"] will be created
  + resource "aws_api_gateway_method" "endpoint_methods" {
      + api_key_required   = true
      + authorization      = "NONE"
      + http_method        = "POST"
      + id                 = (known after apply)
      + region             = "us-east-1"
      + request_parameters = {
          + "method.request.header.Content-Type" = true
        }
      + resource_id        = (known after apply)
      + rest_api_id        = "mpl8es0cb7"
    }

  # module.api_gateway.aws_api_gateway_method_response.cors_responses["api-v1-certificate-create-batch"] will be created
  + resource "aws_api_gateway_method_response" "cors_responses" {
      + 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.endpoint_resources["api-v1-certificate-create-batch"] will be created
  + resource "aws_api_gateway_resource" "endpoint_resources" {
      + id          = (known after apply)
      + parent_id   = "zjb4ix"
      + path        = (known after apply)
      + path_part   = "create-batch"
      + 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         = "er4f8e" -> (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: 8 to add, 1 to change, 1 to destroy.

@maxsonferovante maxsonferovante merged commit 228f874 into main Dec 6, 2025
2 checks passed
@maxsonferovante maxsonferovante deleted the feature/create-certificates-batch-endpoint branch December 6, 2025 18:13
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.

2 participants