Run terraform init
and terraform apply
to get everything created.
Call API Gateway endpoint using GET or POST methods, for eg:
$ http GET $(terraform output -raw apigatewayv2_api_api_endpoint)
No requirements.
Name | Version |
---|---|
random | n/a |
Name | Source | Version |
---|---|---|
api_gateway | terraform-aws-modules/apigateway-v2/aws | ~> 1.0 |
dynamodb_table | terraform-aws-modules/dynamodb-table/aws | ~> 1.0 |
lambda_get | terraform-aws-modules/lambda/aws | ~> 3.0 |
lambda_post | terraform-aws-modules/lambda/aws | ~> 3.0 |
Name | Type |
---|---|
random_pet.this | resource |
No inputs.
Name | Description |
---|---|
apigatewayv2_api_api_endpoint | The URI of the API |
apigatewayv2_api_arn | The ARN of the API |
apigatewayv2_api_execution_arn | The ARN prefix to be used in an aws_lambda_permission's source_arn attribute or in an aws_iam_policy to authorize access to the @connections API. |
apigatewayv2_api_id | The API identifier |
apigatewayv2_domain_name_configuration | The domain name configuration |
apigatewayv2_domain_name_id | The domain name identifier |
apigatewayv2_hosted_zone_id | The Amazon Route 53 Hosted Zone ID of the endpoint |
apigatewayv2_target_domain_name | The target domain name |
command | CLI command to call API Gateway |
default_apigatewayv2_stage_execution_arn | The ARN prefix to be used in an aws_lambda_permission's source_arn attribute or in an aws_iam_policy to authorize access to the @connections API. |
dynamodb_table_arn | ARN of the DynamoDB table |
dynamodb_table_id | ID of the DynamoDB table |
lambda_function_arn | The ARN of the Lambda Function |
lambda_function_invoke_arn | The Invoke ARN of the Lambda Function |
lambda_function_name | The name of the Lambda Function |
lambda_function_qualified_arn | The ARN identifying your Lambda Function Version |
lambda_function_version | Latest published version of Lambda Function |