polite-umbrella-11196
02/27/2023, 8:27 PMlittle-cartoon-10569
02/27/2023, 8:31 PMpolite-umbrella-11196
02/27/2023, 8:31 PMlittle-cartoon-10569
02/27/2023, 8:32 PMpolite-umbrella-11196
02/27/2023, 8:33 PMlittle-cartoon-10569
02/27/2023, 8:33 PMpolite-umbrella-11196
02/27/2023, 8:33 PMlittle-cartoon-10569
02/27/2023, 8:34 PMpolite-umbrella-11196
02/27/2023, 8:34 PMlittle-cartoon-10569
02/27/2023, 8:36 PMpolite-umbrella-11196
02/27/2023, 8:36 PMtypescript
as a devDependency so now at least I get links into definitions)little-cartoon-10569
02/27/2023, 8:39 PMnew
.polite-umbrella-11196
02/27/2023, 8:40 PMlisteners
parameters instead of creating them as a separate action?little-cartoon-10569
02/27/2023, 8:40 PM@pulumi/aws
resources. For example, in TargetGroupAttachment, a target group is defined thus: targetGroup?: pulumi.Input<<http://pulumiAws.lb|pulumiAws.lb>.TargetGroup>;
@pulumi/aws
polite-umbrella-11196
02/27/2023, 8:43 PMconst alb = new awsx.lb.ApplicationLoadBalancer('recorder-traffic', {
listeners: [
{
port: 80,
protocol: 'HTTP',
defaultActions: [{
type: 'redirect',
redirect: {
protocol: 'HTTPS',
port: '443',
statusCode: 'HTTP_301',
},
}],
},
],
});
Yeah this looks like the path I found toolittle-cartoon-10569
02/27/2023, 8:44 PMpolite-umbrella-11196
02/27/2023, 8:44 PMalb.listeners[1].endpoint
but it’s an Output<>
type which means I need to hit it with some kind of uglystick?little-cartoon-10569
02/27/2023, 8:54 PMapply()
to get those values.polite-umbrella-11196
02/27/2023, 8:55 PMconst albDomain = new aws.route53.Record(domainName, {
name: domainName,
zoneId: hostedZoneId,
type: 'CNAME',
records: [alb.listeners[1].endpoint],
ttl: 600,
});
little-cartoon-10569
02/27/2023, 8:56 PMlisteners.apply((listeners) => listeners[1]).endpoint
polite-umbrella-11196
02/27/2023, 8:57 PMaws
example that covers that material instead?little-cartoon-10569
02/27/2023, 9:49 PMpolite-umbrella-11196
02/27/2023, 10:00 PMlittle-cartoon-10569
02/27/2023, 10:01 PMpolite-umbrella-11196
02/27/2023, 10:01 PMconst task = new aws.ecs.TaskDefinition('recorder-task', {
family: 'service',
containerDefinitions: JSON.stringify([
{
name: 'recorder',
image: imageUri,
cpu: 512,
memory: 128,
portMappings: [{ containerPort: 80, hostPort: 80 }],
},
]),
});
This generates an error that Container.image repository should be 255 characters or less.
. Any suggestions on what to try?little-cartoon-10569
02/27/2023, 11:32 PMpolite-umbrella-11196
02/27/2023, 11:32 PMlittle-cartoon-10569
02/27/2023, 11:33 PM