Skip to content

Conversation

@bornast
Copy link
Member

@bornast bornast commented Jan 2, 2026

Changes:

  • Resolve TODO comments
  • Add load balancing algorithm type argument
  • Add certificate argument
  • Add integration tests covering the newly added arguments

Update load balancer SSL policy to `ELBSecurityPolicy-TLS13-1-2-2021-06` (enforces TLS 1.2+/TLS 1.3, modern ciphers, improved security and performance).
});

const webServerWithDomain = new studion.WebServerBuilder(`web-server-domain`)
.configureWebServer('nginxdemos/nginx-hello:plain-text', 8080)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should nginxdemos/nginx-hello:plain-text be a defined constant as it is reused multiple times in the same file?

privateZone: false,
});

const webServerWithDomain = new studion.WebServerBuilder(`web-server-domain`)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const webServerWithDomain = new studion.WebServerBuilder(`web-server-domain`)
const webServerWithCustomDomain = new studion.WebServerBuilder(`web-server-domain`)

just because we use customDomain inside web server component 🤔
definitely if you decide to change the name then don't forget to update it on other places also

if ((domain || certificate) && !hostedZoneId) {
throw new Error(
'WebServer:hostedZoneId must be provided when the domain is specified',
'WebServer: hostedZoneId must be provided when domain or certificate are provided',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'WebServer: hostedZoneId must be provided when domain or certificate are provided',
'HostedZoneId must be provided when domain or certificate are provided',

🤔

},
{ parent: this },
),
),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To improve readability I would suggest storing created record to a separate variable and then use it in the return statement

const record = new aws.route53.Record(
...

return {
	primary: pulumi.output(record),

or something like that

{ parent: this },
),
),

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this blank line

Comment on lines +153 to +157
delayFirstAttempt: true,
numOfAttempts: 10,
startingDelay: 2000,
timeMultiple: 2,
jitter: 'full',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that in tests for other components this is part of the test context config so maybe we should do the same here to be consistent 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support certificate argument on WebServer component Add loadBalancingAlgorithmType param to web-server component

3 participants