-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #352 from dasmeta/DMVP-5400
fix(DMVP-5400): Change default value
- Loading branch information
Showing
20 changed files
with
343 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# cloudfront_functions | ||
|
||
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> | ||
## Requirements | ||
|
||
No requirements. | ||
|
||
## Providers | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a | | ||
|
||
## Modules | ||
|
||
No modules. | ||
|
||
## Resources | ||
|
||
| Name | Type | | ||
|------|------| | ||
| [aws_cloudfront_function.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_function) | resource | | ||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|------|---------|:--------:| | ||
| <a name="input_code"></a> [code](#input\_code) | Function code | `any` | n/a | yes | | ||
| <a name="input_comment"></a> [comment](#input\_comment) | Function comment | `string` | `""` | no | | ||
| <a name="input_name"></a> [name](#input\_name) | Function name | `string` | n/a | yes | | ||
| <a name="input_publish"></a> [publish](#input\_publish) | Function Publish | `bool` | `true` | no | | ||
| <a name="input_runtime"></a> [runtime](#input\_runtime) | Function runtime | `string` | `"cloudfront-js-1.0"` | no | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| <a name="output_arn"></a> [arn](#output\_arn) | n/a | | ||
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
resource "aws_cloudfront_function" "this" { | ||
name = var.name | ||
runtime = var.runtime | ||
comment = var.comment | ||
publish = var.publish | ||
code = var.code | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
output "arn" { | ||
value = aws_cloudfront_function.this.arn | ||
} |
29 changes: 29 additions & 0 deletions
29
modules/cloudfront/modules/cloudfront_functions/tests/basic/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# basic | ||
|
||
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> | ||
## Requirements | ||
|
||
No requirements. | ||
|
||
## Providers | ||
|
||
No providers. | ||
|
||
## Modules | ||
|
||
| Name | Source | Version | | ||
|------|--------|---------| | ||
| <a name="module_function"></a> [function](#module\_function) | ../../ | n/a | | ||
|
||
## Resources | ||
|
||
No resources. | ||
|
||
## Inputs | ||
|
||
No inputs. | ||
|
||
## Outputs | ||
|
||
No outputs. | ||
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK --> |
Empty file.
6 changes: 6 additions & 0 deletions
6
modules/cloudfront/modules/cloudfront_functions/tests/basic/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module "function" { | ||
source = "../../" | ||
|
||
name = "test" | ||
code = file("${path.module}/function.js") | ||
} |
27 changes: 27 additions & 0 deletions
27
modules/cloudfront/modules/cloudfront_functions/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
variable "name" { | ||
type = string | ||
description = "Function name" | ||
} | ||
|
||
variable "comment" { | ||
type = string | ||
description = "Function comment" | ||
default = "" | ||
} | ||
|
||
variable "runtime" { | ||
type = string | ||
description = "Function runtime" | ||
default = "cloudfront-js-1.0" | ||
} | ||
|
||
variable "publish" { | ||
type = bool | ||
description = "Function Publish" | ||
default = true | ||
} | ||
|
||
variable "code" { | ||
type = any | ||
description = "Function code" | ||
} |
Oops, something went wrong.