# ApigwAuthSample A working example which deploys HTTP api, Lambda functions, and necessary permissions. ## Testing the API To test this in postman, put in the following settings: URL: https://.execute-api.ap-east-1.amazonaws.com/?inputValue=TestMessage123 Authorization: api key, key = Authorizations, value = sha256 hash, add to = Header ## Requirements | Name | Version | |------|---------| | terraform | ~> 1.13.0 | | aws | ~> 5.0 | ## Providers | Name | Version | |------|---------| | archive | 2.7.1 | | aws | 5.100.0 | | random | 3.7.2 | ## Modules No modules. ## Resources | Name | Type | |------|------| | [aws_apigatewayv2_api.SampleHttpApi](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/apigatewayv2_api) | resource | | [aws_apigatewayv2_deployment.deployment](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/apigatewayv2_deployment) | resource | | [aws_apigatewayv2_stage.stage1](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/apigatewayv2_stage) | resource | | [aws_cloudwatch_log_group.api_logging](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource | | [aws_cloudwatch_log_group.loggroups](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) | resource | | [aws_iam_role.role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource | | [aws_iam_role_policy_attachment.role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource | | [aws_lambda_function.EchoFunction](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function) | resource | | [aws_lambda_function.SampleAuthorizer](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function) | resource | | [aws_lambda_permission.EchoFunction](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_permission) | resource | | [aws_lambda_permission.SampleAuthorizer](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_permission) | resource | | [random_password.pw](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/password) | resource | | [archive_file.EchoFunction](https://registry.terraform.io/providers/hashicorp/archive/latest/docs/data-sources/file) | data source | | [archive_file.SampleAuthorizer](https://registry.terraform.io/providers/hashicorp/archive/latest/docs/data-sources/file) | data source | | [aws_caller_identity.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source | | [aws_iam_policy_document.lambda_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source | ## Inputs | Name | Description | Type | Default | Required | |------|-------------|------|---------|:--------:| | DynamicAddressGroup | n/a | `any` | n/a | yes | | application | n/a | `any` | n/a | yes | | aws-region | n/a | `any` | n/a | yes | | costcenter | n/a | `any` | n/a | yes | | customer-name | n/a | `any` | n/a | yes | | environment | n/a | `any` | n/a | yes | | owner | n/a | `any` | n/a | yes | | project | n/a | `any` | n/a | yes | ## Outputs | Name | Description | |------|-------------| | api\_deployment\_id | n/a | | api\_endpoint | n/a | | last-updated | n/a | --- ## Authorship This module was developed by Rackspace.