AWS Elastic Load Balancing V2 Deployment with CloudFormation: Difference between revisions
Jump to navigation
Jump to search
Line 28: | Line 28: | ||
- Key: '[[AWS_Elastic_Load_Balancing_Concepts#access_logs.s3.prefix|access_logs.s3.prefix]]' | - Key: '[[AWS_Elastic_Load_Balancing_Concepts#access_logs.s3.prefix|access_logs.s3.prefix]]' | ||
Value: ... | Value: ... | ||
[[AWS_Elastic_Load_Balancing_Concepts#Subnet_Mapping|Subnets]]: | |||
- blue-subnet | - blue-subnet | ||
- red-subnet | - red-subnet | ||
SubnetMappings: | [[AWS_Elastic_Load_Balancing_Concepts#Subnet_Mapping|SubnetMappings]]: | ||
- ... | - ... | ||
SecurityGroups: | |||
- String | |||
==AWS::ElasticLoadBalancingV2::TargetGroup== | ==AWS::ElasticLoadBalancingV2::TargetGroup== |
Revision as of 19:19, 2 April 2019
External
Internal
Resource Types
AWS::ElasticLoadBalancingV2::LoadBalancer
Resources: ALoadBalancer: Type: AWS::ElasticLoadBalancingV2::LoadBalancer Properties: Name: blue Scheme: 'internet-facing'|'internal' Type: 'application'|'network' IpAddressType: 'ipv4' LoadBalancerAttributes: - Key: 'access_logs.s3.enabled' Value: true|false - Key: 'access_logs.s3.bucket' Value: ... - Key: 'access_logs.s3.prefix' Value: ... Subnets: - blue-subnet - red-subnet SubnetMappings: - ... SecurityGroups: - String
AWS::ElasticLoadBalancingV2::TargetGroup
Resources: TargetGroup: Type: AWS::ElasticLoadBalancingV2::TargetGroup Properties: HealthCheckIntervalSeconds: 60 HealthCheckPath: '/myservice/actuator/health' HealthCheckProtocol: HTTP HealthCheckTimeoutSeconds: 5 HealthyThresholdCount: 2 TargetType: ip Name: myservice Port: 8086 Protocol: HTTP UnhealthyThresholdCount: 10 VpcId: !Ref MyVpcId
AWS::ElasticLoadBalancingV2::Listener
Resources: LoadBalancerListener: Type: AWS::ElasticLoadBalancingV2::Listener DependsOn: - TargetGroup Properties: DefaultActions: - TargetGroupArn: !Ref 'TargetGroup' Type: 'forward' LoadBalancerArn: Fn::ImportValue: !Join [':', [!Ref 'DeploymentStackName', 'ServiceALB']] Port: 10002 Protocol: HTTP