AWS ELBv2 Redirection CDK Construct Library
This library makes it easy to creation redirection rules on Application Load Balancers.
Usage
Base redirection construct (Typescript)
// create a vpc
const vpc = new ec2.Vpc(stack, 'vpc');
// create an alb in that vpc
const alb = new elbv2.ApplicationLoadBalancer(stack, 'alb', {
internetFacing: true,
vpc,
});
// create a redirect from 8080 to 8443
new Redirect(stack, 'redirect', {
alb,
sourcePort: 8080,
sourceProtocol: elbv2.ApplicationProtocol.HTTP,
targetPort: 8443,
targetProtocol: elbv2.ApplicationProtocol.HTTPS,
});
Using the pre-build HTTP to HTTPS construct (Typescript)
// create a vpc
const vpc = new ec2.Vpc(stack, 'vpc');
// create an alb in that vpc
const alb = new elbv2.ApplicationLoadBalancer(stack, 'alb', {
internetFacing: true,
vpc,
});
// use the pre-built construct for HTTP to HTTPS
new RedirectHttpHttps(stack, 'redirectHttpHttps', {
alb,
});
Metadata
Release files for renovosolutions.aws-cdk-elbv2-redirect 0.0.270
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| renovosolutions_aws_cdk_elbv2_redirect-0.0.270.tar.gz | 28.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| renovosolutions.aws_cdk_elbv2_redirect-0.0.270-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 56.6 kB
Release files / renovosolutions_aws_cdk_elbv2_redirect-0.0.270.tar.gz
| Download URL | renovosolutions_aws_cdk_elbv2_redirect-0.0.270.tar.gz |
|---|---|
| Size | 28.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bbf094ffccf491ec635597c6e6d0046802e12056bcf5ab8d095e882ac3f082a
|
|
BLAKE2b-256 checksum How to use checksums |
b9d9217f240be1faf6a2b8290e56db3cae3599969d06b90d7b6dd92791071269
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / renovosolutions.aws_cdk_elbv2_redirect-0.0.270-py3-none-any.whl
| Download URL | renovosolutions.aws_cdk_elbv2_redirect-0.0.270-py3-none-any.whl |
|---|---|
| Size | 28.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b9e9e9119d685a12c879e1fb237b71a4c21ba5a7aceba76ae1feb4eab4154410
|
|
BLAKE2b-256 checksum How to use checksums |
6a1af1cfed2cd72d77458af5faecbced74644fbd4f5711506a37bbfe7326d9b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|