Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Name length requirement is too short #68

Open
stuft2 opened this issue Nov 14, 2022 · 0 comments
Open

App Name length requirement is too short #68

stuft2 opened this issue Nov 14, 2022 · 0 comments

Comments

@stuft2
Copy link

stuft2 commented Nov 14, 2022

If my repository name is ces-adm-sv-byupw and I include that in my app name, then the postman module will complain about the name of the postman bucket being too long:

│ Error: expected length of bucket to be in the range (0 - 63), got ces-adm-sv-byupw-deploy-test-dev-postman-tests-***-logs
│ 
│   with module.app.module.postman_test_lambda.aws_s3_bucket.postman_bucket_logs[0],
│   on .terraform/modules/app.postman_test_lambda/main.tf line 49, in resource "aws_s3_bucket" "postman_bucket_logs":
│   49:   bucket        = "${var.app_name}-postman-tests-${data.aws_caller_identity.current.account_id}-logs"
│ 

The app name shouldn't have to be so short. My suggestion would be to change the name of the bucket:

  1. Remove the account id from the bucket name
  2. Shorted postman-tests to pm
bucket        = "${var.app_name}-pm-logs"

On my part, I'm removing the deploy-test portion of the bucket name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant