Skip to content

Import ACM certificate for NLB #5474

Answered by Lou1415926
rmarops asked this question in Q&A
Discussion options

You must be logged in to vote

In this case, you can use either addons or CDK/YAML override to add a TLS listener yourself!

# Add an TLS listener.
- op: add
  path: /Resources/NLBListenerTLS
  value:
    Metadata: 
      'aws:copilot:description': 'An TLS listener on port `443` that forwards traffic to your tasks'
    Type: AWS::ElasticLoadBalancingV2::Listener
    Properties:
      DefaultActions:
        - TargetGroupArn: !Ref NetworkLoadBalancerTargetGroupTLS # NOTE: Refering the second resource we will add below.
          Type: forward
      LoadBalancerArn: !Ref PublicNetworkLoadBalancer
      Port: 443
      Protocol: TLS
      Certificates:
        - CertificateArn: <your certificate ARN>
      SslPolicy: ELBSe…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@rmarops
Comment options

@Lou1415926
Comment options

Answer selected by rmarops
@rmarops
Comment options

@Lou1415926
Comment options

@rmarops
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type/feature Issues that are new feature requests. type/request Issues that are created by customers. area/override Issues related to overrides.
2 participants