【问题标题】:Making Elastic Beanstalk domain HTTPS, getting error on deployment - undefined resource AWSEBLoadBalancer使 Elastic Beanstalk 域 HTTPS,部署时出错 - 未定义资源 AWSEBLoadBalancer
【发布时间】:2021-05-21 19:20:28
【问题描述】:

所以我有一个域 http://leafapi.co.uk/ 成功链接到我的弹性 beanstalk 环境,我正在尝试使用 HTTPS 设置它。我使用 SSL 证书在弹性 beanstalk 配置中的 443 上设置了负载均衡器侦听器。

我认为我需要做的最后一件事是从我的项目文件中配置一个安全组,配置文件如下所示:

Resources:
  sslSecurityGroupIngress:
    Type: AWS::EC2::SecurityGroupIngress
    Properties:
      GroupId: {"Fn::GetAtt" : ["AWSEBSecurityGroup", "GroupId"]}
      IpProtocol: tcp
      ToPort: 443
      FromPort: 443
      SourceSecurityGroupName: {"Fn::GetAtt" : ["AWSEBLoadBalancer" , "SourceSecurityGroup.GroupName"]}

但是,当我尝试部署时,出现以下错误:

Service:AmazonCloudFormation, Message:Template error: instance of Fn::GetAtt references undefined resource AWSEBLoadBalancer

任何建议将不胜感激,谢谢。

【问题讨论】:

    标签: https amazon-elastic-beanstalk


    【解决方案1】:

    问题实际上是我在我的 SSL 证书域名前添加了“www.”。获得正确的 SSL 证书后,它无需上述配置即可工作。

    【讨论】:

      猜你喜欢
      • 2019-01-10
      • 2019-05-25
      • 2016-09-01
      • 2016-10-17
      • 2020-12-04
      • 2016-02-02
      • 2020-11-10
      • 2020-08-17
      • 2016-03-09
      相关资源
      最近更新 更多