Skip to content

Commit 76227ce

Browse files
aws_application_load_balancer_configuration
1 parent a3fe913 commit 76227ce

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

aws_application_load_balancer

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
- name: Target group for ALB
3+
hosts: localhost
4+
gather_facts: false
5+
connection: local
6+
tasks:
7+
- name: Launch configuration
8+
elb_application_lb:
9+
name: myelb
10+
security_groups:
11+
- sg-095eef877179c6a17
12+
subnets:
13+
- subnet-61393006
14+
- subnet-8b8fb1c2
15+
listeners:
16+
- Protocol: HTTPS # Required. The protocol for connections from clients to the load balancer (HTTP or HTTPS) (case-sensitive).
17+
Port: 443 # Required. The port on which the load balancer is listening.
18+
# The security policy that defines which ciphers and protocols are supported. The default is the current predefined security policy.
19+
SslPolicy: ELBSecurityPolicy-2016-08
20+
Certificates: # The ARN of the certificate (only one certficate ARN should be provided)
21+
- CertificateArn: arn:aws:iam::*************:server-certificate/**
22+
DefaultActions:
23+
- Type: forward # Required. Only 'forward' is accepted at this time
24+
TargetGroupName: testtg # Required. The name of the target group
25+
state: present

0 commit comments

Comments
 (0)