Skip to content

Commit

Permalink
fix: src path on signer lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
robh007 committed Mar 20, 2023
1 parent 3cecee3 commit 6e0234e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ This module uses a lambda function to generate the required SIGV4 signature & th

| Name | Version |
|------|---------|
| <a name="requirement_terracurl"></a> [terracurl](#requirement\_terracurl) | 1.1.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.59.0 |
| <a name="requirement_terracurl"></a> [terracurl](#requirement\_terracurl) | >= 1.1.0 |

## Providers

Expand All @@ -30,14 +31,14 @@ No modules.

| Name | Type |
|------|------|
| [terracurl_request.create_and_destroy](https://registry.terraform.io/providers/devops-rob/terracurl/1.1.0/docs/resources/request) | resource |
| [terracurl_request.create_and_destroy](https://registry.terraform.io/providers/devops-rob/terracurl/latest/docs/resources/request) | resource |
| [aws_lambda_invocation.sigv4](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/lambda_invocation) | data source |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_lambda_sigv4_name"></a> [lambda\_sigv4\_name](#input\_lambda\_sigv4\_name) | Name of the lambda function that will return the Sigv4 headers | `string` | `"sigv4-with-layer"` | no |
| <a name="input_lambda_sigv4_name"></a> [lambda\_sigv4\_name](#input\_lambda\_sigv4\_name) | Name of the lambda function that will return the Sigv4 headers | `string` | `"aws-lambda-signer"` | no |
| <a name="input_sigv4_config"></a> [sigv4\_config](#input\_sigv4\_config) | Map of request configuration, must contain create & destroy maps | `map(any)` | <pre>{<br> "request_1": {<br> "create": {},<br> "destroy": {}<br> }<br>}</pre> | no |
| <a name="input_sigv4_modify_config"></a> [sigv4\_modify\_config](#input\_sigv4\_modify\_config) | Map of request configuration for to modify resources | `map(any)` | <pre>{<br> "request_1": {<br> "modify": {}<br> }<br>}</pre> | no |

Expand Down
2 changes: 1 addition & 1 deletion modules/sigv4-signer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ module "sigv4_lambda" {
]

source_path = [{
path = "src/"
path = "${path.module}/src/"
}]
}
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
variable "lambda_sigv4_name" {
description = "Name of the lambda function that will return the Sigv4 headers"
default = "sigv4-with-layer"
default = "aws-lambda-signer"

type = string
}
Expand Down
6 changes: 5 additions & 1 deletion versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ terraform {
required_providers {
terracurl = {
source = "devops-rob/terracurl"
version = "1.1.0"
version = ">= 1.1.0"
}
aws = {
source = "hashicorp/aws"
version = ">= 4.59.0"
}
}
}

0 comments on commit 6e0234e

Please sign in to comment.