aws / copilot-cli

The AWS Copilot CLI is a tool for developers to build, release and operate production ready containerized applications on AWS App Runner or Amazon ECS on AWS Fargate.
https://aws.github.io/copilot-cli/
Apache License 2.0
3.53k stars 417 forks source link

[Bug]: Unable to add HTTPS listeners for Backend Service after the Private Load Balancer is created #5961

Open rickychew77 opened 3 weeks ago

rickychew77 commented 3 weeks ago

Description:

Unable to add HTTPS listeners for Backend Service after the Private Load Balancer is created. Getting error below.

CustomResource attribute error: Vendor response doesn't contain InternalHTTPSListenerArn attribute in object arn:aws:cloudformation:ap-southeast-1:<redacted>

I created this Internal ALB first with only HTTP listeners while testing, without HTTPS listeners in mind to configure them later. After adding certificate field in environment manifest and http.alias in Backend Service manifest, i am getting error above.

Details:

Copilot version: v1.33.1 OS: macOS 15 Manifest: Backend Service AWS Region: ap-southeast-1

Observed result:

When running copilot svc deploy, am getting error above that cannot find HTTPS listener ARN. The HTTPS listener was created at the internal LB after running copilot env deploy but running copilot svc deploy for the http.alias, error above pops up.

Expected result:

Expecting to able to simply add another HTTPS listener.

Debugging:

I have to delete the LB and redeploy again.