File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11import * as aws from "@pulumi/aws" ;
22import * as awsx from "@pulumi/awsx" ;
3+ import * as pulumi from "@pulumi/pulumi" ;
34
45// VPC with public subnets for ALB and private subnets for containers
56const vpc = new awsx . ec2 . Vpc ( "pathfinder-vpc" ) ;
@@ -157,9 +158,7 @@ const service = new awsx.ecs.FargateService("pathfinder-service", {
157158const scaling = new aws . appautoscaling . Target ( "pathfinder-scaling" , {
158159 maxCapacity : 10 ,
159160 minCapacity : 2 ,
160- resourceId : service . service . name . apply (
161- ( name ) => `service/${ cluster . name } /${ name } `
162- ) ,
161+ resourceId : pulumi . interpolate `service/${ cluster . name } /${ service . service . name } ` ,
163162 scalableDimension : "ecs:service:DesiredCount" ,
164163 serviceNamespace : "ecs" ,
165164} ) ;
You can’t perform that action at this time.
0 commit comments