You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to v0.6.0, I initialized an application with the domain name flag:
$ copilot app init --domain domain.com
And then I tried to create an environment with the default VPC configuration:
$ copilot env init
However, I received the following error:
✘ Failed to accept changes for the test environment.
✘ check if changeset is empty: create change set copilot-3eebf082-52de-4746-8344-b4494b067bae for stack nginx-app-test: ValidationError: Template format error: Unresolved resource dependencies [PublicLoadBalancer, DefaultHTTPTargetGroup] in the Resources block of the template
status code: 400, request id: 22d3d606-56b0-424c-9b72-c7fc2d291f64: describe change set copilot-3eebf082-52de-4746-8344-b4494b067bae for stack nginx-app-test: ValidationError: Stack [nginx-app-test] does not exist
status code: 400, request id: 6020e4b2-9c4a-4ae0-892e-36e3cf7bbad8
Why?
I believe this is happening because of the following resource:
Fixes#1662
Although not visible here, the [diff](https://diff.corp.amazon.com/compare/2az4ioz9 ) between v1.0.1 and v1.0.0 for the env template is just the condition for the HTTPSListener resource:
```
- Condition: DelegateDNS
+ Condition: ExportHTTPSListener
```
I'll investigate how we can add e2e tests for apps initialized with a domain.
_By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
…1663)
Fixesaws#1662
Although not visible here, the [diff](https://diff.corp.amazon.com/compare/2az4ioz9 ) between v1.0.1 and v1.0.0 for the env template is just the condition for the HTTPSListener resource:
```
- Condition: DelegateDNS
+ Condition: ExportHTTPSListener
```
I'll investigate how we can add e2e tests for apps initialized with a domain.
_By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
Description
After upgrading to v0.6.0, I initialized an application with the domain name flag:
And then I tried to create an environment with the default VPC configuration:
However, I received the following error:
Why?
I believe this is happening because of the following resource:
copilot-cli/templates/environment/versions/cf-v1.0.0.yml
Lines 161 to 165 in c47e17b
The ALB does not exist by default anymore and the
DelegateDNS
condition evaluates to true trying to create an HTTPSListener:copilot-cli/templates/environment/versions/cf-v1.0.0.yml
Lines 31 to 32 in c47e17b
Possible fixes
One way of fixing this issue is to limit the HTTPSListenerRule creation if
DelegateDNS
andCreateALB
evaluates to true.The text was updated successfully, but these errors were encountered: