amazon-web-services - 如何将 AWS ELB 内置于 AWS Cloudformation 模板中?

标签 amazon-web-services aws-cloudformation amazon-elb

我正在模板化一个 EB 应用程序和多个环境。我想确保 ELB 设置为内部,但在 Cloudformation 文档中找不到引用。

最佳答案

您可以通过在 EB 的 aws:ec2:vpc namespace 中设置 ELBScheme 属性,在 Elastic Beanstalk 应用程序中配置内部 Elastic Load Balancer。 :

Specify internal if you want to create an internal load balancer in your VPC so that your Elastic Beanstalk application cannot be accessed from outside your VPC.

要在 CloudFormation 模板中配置此功能,请将该选项添加到 OptionSettings您的属性(property)AWS::ElasticBeanstalk::Environment资源:

Type: AWS::ElasticBeanstalk::Environment
Properties: 
  ApplicationName: !Ref AppName
  SolutionStackName: !Ref SolutionStackName
  OptionSettings: 
    - 
      Namespace: "aws:ec2:vpc"
      OptionName: ELBScheme
      Value: internal

关于amazon-web-services - 如何将 AWS ELB 内置于 AWS Cloudformation 模板中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41828215/

相关文章:

Laravel AWS Elastic Beanslack 部署错误 - 内存不足错误

android - 尝试使用生成的 SDK 从 Android 进行 "Hello World"AWS API Gateway GET API 调用

ruby-on-rails - Elastic Beanstalk,Bundler 找不到 gem "bundler"的兼容版本

python - 在 Cloudformation 中使用时无法从 S3 下载引导文件

amazon-web-services - 如何使用 API 网关的 CDK 声明 $default catch-all 路由?

使用不同 AWS ELB (EC2) 的子域的 SSL

ldap - LDAP over SSL 是否需要客户端上的证书?

amazon-web-services - Amazon S3 获取请求和 S3 数据检索之间的区别

amazon-web-services - 在ElasticSearch v6.2中组合 “bool”和 “terms”查询(在AWS上)

amazon-web-services - CloudFormation 堆栈卡在 'Create-In' 进度'