3.6 KiB
3.6 KiB
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 | resource |
| aws_apigatewayv2_deployment.deployment | resource |
| aws_apigatewayv2_stage.stage1 | resource |
| aws_cloudwatch_log_group.api_logging | resource |
| aws_cloudwatch_log_group.loggroups | resource |
| aws_iam_role.role | resource |
| aws_iam_role_policy_attachment.role | resource |
| aws_lambda_function.EchoFunction | resource |
| aws_lambda_function.SampleAuthorizer | resource |
| aws_lambda_permission.EchoFunction | resource |
| aws_lambda_permission.SampleAuthorizer | resource |
| random_password.pw | resource |
| archive_file.EchoFunction | data source |
| archive_file.SampleAuthorizer | data source |
| aws_caller_identity.this | data source |
| aws_iam_policy_document.lambda_role | 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.