@studion/infra-code-blocks 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -93,13 +93,13 @@ class WebServer extends pulumi.ComponentResource {
|
|
|
93
93
|
tags: constants_1.commonTags,
|
|
94
94
|
}, { parent: this });
|
|
95
95
|
const lb = new aws.lb.LoadBalancer(`${this.name}-lb`, {
|
|
96
|
-
namePrefix:
|
|
96
|
+
namePrefix: 'lb-',
|
|
97
97
|
loadBalancerType: 'application',
|
|
98
98
|
subnets: vpc.publicSubnetIds,
|
|
99
99
|
securityGroups: [lbSecurityGroup.id],
|
|
100
100
|
internal: false,
|
|
101
101
|
ipAddressType: 'ipv4',
|
|
102
|
-
tags: constants_1.commonTags,
|
|
102
|
+
tags: Object.assign(Object.assign({}, constants_1.commonTags), { Name: `${this.name}-lb` }),
|
|
103
103
|
}, { parent: this });
|
|
104
104
|
const lbTargetGroup = new aws.lb.TargetGroup(`${this.name}-lb-tg`, {
|
|
105
105
|
namePrefix: 'lb-tg-',
|
|
@@ -117,7 +117,7 @@ class WebServer extends pulumi.ComponentResource {
|
|
|
117
117
|
tags: Object.assign(Object.assign({}, constants_1.commonTags), { Name: `${this.name}-lb-target-group` }),
|
|
118
118
|
}, { parent: this, dependsOn: [this.lb] });
|
|
119
119
|
const lbHttpListener = new aws.lb.Listener(`${this.name}-lb-listener-80`, {
|
|
120
|
-
loadBalancerArn:
|
|
120
|
+
loadBalancerArn: lb.arn,
|
|
121
121
|
port: 80,
|
|
122
122
|
defaultActions: [
|
|
123
123
|
{
|
|
@@ -140,7 +140,7 @@ class WebServer extends pulumi.ComponentResource {
|
|
|
140
140
|
defaultActions: [
|
|
141
141
|
{
|
|
142
142
|
type: 'forward',
|
|
143
|
-
targetGroupArn:
|
|
143
|
+
targetGroupArn: lbTargetGroup.arn,
|
|
144
144
|
},
|
|
145
145
|
],
|
|
146
146
|
tags: constants_1.commonTags,
|