Skip to content

The new project that includes "_" fails deploying #973

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

Open
yuta519 opened this issue Feb 4, 2025 · 0 comments
Open

The new project that includes "_" fails deploying #973

yuta519 opened this issue Feb 4, 2025 · 0 comments

Comments

@yuta519
Copy link
Contributor

yuta519 commented Feb 4, 2025

Overview

  • Deployments fail when the project name contains an underscore (_). My project directory structure is as follows:
deploy_to_lab
 ├── Dockerfile
 ├── app.py
 ├── compose.yaml
 └── requirements.txt
  • When I run the following command, I receive the following error: sdk-v2/provider2.go:520: sdk.helper_schema: requesting ACM Certificate (*.deploy_to_lab.yuta519.defang.app): operation error ACM

defang compose up --provider=aws

The error

cd pulumi   aws:acm:Certificate (*.deploy_to_lab.yuta519.defang.app):
2025-02-04T13:40:49.738-08:00 cd pulumi     error:   sdk-v2/provider2.go:520: sdk.helper_schema: requesting ACM Certificate (*.deploy_to_lab.yuta519.defang.app): operation error ACM: RequestCertificate, https response error StatusCode: 400, RequestID: 8dce3e2a-a7f4-4db9-97ac-eef39e7f7798, api error ValidationException: 2 validation errors detected: Value of the input at 'subjectAlternativeNames' failed to satisfy constraint: Member must satisfy constraint: [Member must have length less than or equal to 253, Member must have length greater than or equal to 1, Member must satisfy regular expression pattern: ^(\*\.)?(((?!-)[A-Za-z0-9-]{0,62}[A-Za-z0-9])\.)+((?!-)[A-Za-z0-9-]{1,62}[A-Za-z0-9])$]; Value of the input at 'domainName' failed to satisfy constraint: Member must satisfy regular expression pattern: ^(\*\.)?(((?!-)[A-Za-z0-9-]{0,62}[A-Za-z0-9])\.)+((?!-)[A-Za-z0-9-]{1,62}[A-Za-z0-9])$: provider=aws@6.57.0

Reason

  • Underscores (_) are not valid characters in domain names.
  • The generated ACM Certificate request includes an invalid domain name (*.deploy_to_lab.yuta519.defang.app), leading to a validation error.
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