lemon-egg-20955
05/07/2020, 10:40 PMgentle-diamond-70147
05/07/2020, 10:41 PMlemon-egg-20955
05/07/2020, 10:42 PMgentle-diamond-70147
05/07/2020, 10:46 PMlemon-egg-20955
05/07/2020, 10:47 PM{ image: new awsx.ecr.RepositoryImage(repository, repository.repositoryUrl + ':' + image) }
gentle-diamond-70147
05/07/2020, 11:02 PMaws_account_<http://id.dkr.ecr.us-west-2.amazonaws.com/amazonlinux:latest|id.dkr.ecr.us-west-2.amazonaws.com/amazonlinux:latest>
.lemon-egg-20955
05/07/2020, 11:19 PMgentle-diamond-70147
05/07/2020, 11:47 PMconst alb = new <http://awsx.lb|awsx.lb>.ApplicationLoadBalancer("net-lb", {
external: true,
securityGroups: cluster.securityGroups
});
const http = alb.createListener("http", { port: 80, external: true });
const https = alb.createListener("https", { port: 443, external: true, certificateArn: "your_arn" });
lemon-egg-20955
05/07/2020, 11:48 PMconst apiTarget = new awsx.elasticloadbalancingv2.ApplicationTargetGroup('api-target', {
loadBalancer: alb2,
port: 80,
protocol: 'HTTP'
});
const api = alb2.createListener("api-http", { port: 80, external: true, targetGroup: apiTarget });
const apiSsl = alb2.createListener("api-https", { port: 443, external: true, certificateArn: 'arn', targetGroup: apiTarget });
gentle-diamond-70147
05/07/2020, 11:51 PMawsx
package which builds on top of the low-level aws
resources. It's meant to make some of the AWS resources (like ECS, API Gateway, etc) a bit easier to use, but if you're familiar with the low-level AWS resources it might not feel as natural.