Skip to content

Commit f6177c1

Browse files
committed
fix: added <=24 character info for app_name variable
1 parent 4c0aee0 commit f6177c1

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
4242
format:
4343
name: Terraform Format
4444
runs-on: ubuntu-latest
45-
needs: env
4645
steps:
4746
- uses: actions/checkout@v2
4847

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ module "lambda_api" {
9292
## Inputs
9393
| Name | Type | Description | Default |
9494
| --- | --- | --- | --- |
95-
| app_name | string | application name (include the env aka. 'my-api-dev') | |
95+
| app_name | string | Application name to name your Lambda API and other resources (Must be <= 24 alphanumeric characters) | |
9696
| image_uri | string | ECR Image URI containing the function's deployment package (conflicts with `zip_file`)| null |
9797
| zip_filename | string | File that contains your compiled or zipped source code. |
9898
| zip_handler | string | Lambda event handler |

variables.tf

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
variable "app_name" {
22
type = string
3-
description = "application name (include the env in the name)"
3+
description = "Application name to name your Fargate API and other resources. Must be <= 24 characters."
4+
validation {
5+
condition = length(var.app_name) <= 24
6+
error_message = "Must be <= 24 characters."
7+
}
48
}
59

610
variable "image_uri" {
@@ -61,12 +65,6 @@ variable "https_certificate_arn" {
6165
description = "ARN of the HTTPS certificate of the hosted zone/domain."
6266
}
6367

64-
#variable "use_codedeploy" {
65-
# type = bool
66-
# description = "If true, CodeDeploy App and Deployment Group will be created and TF will not update alias to point to new versions of the Lambda (because CodeDeploy will do that)."
67-
# default = false
68-
#}
69-
7068
variable "codedeploy_service_role_arn" {
7169
type = string
7270
description = "ARN of the IAM Role for the CodeDeploy to use to initiate new deployments. (usually the PowerBuilder Role)"

0 commit comments

Comments
 (0)