github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/transpiled_examples/awsx-fargate-pp/awsx-fargate.pp (about) 1 resource cluster "aws:ecs/cluster:Cluster" { 2 __logicalName = "cluster" 3 } 4 5 resource lb "awsx:lb:ApplicationLoadBalancer" { 6 __logicalName = "lb" 7 } 8 9 resource nginx "awsx:ecs:FargateService" { 10 __logicalName = "nginx" 11 cluster = cluster.arn 12 taskDefinitionArgs = { 13 container = { 14 image = "nginx:latest", 15 cpu = 512, 16 memory = 128, 17 portMappings = [{ 18 containerPort = 80, 19 targetGroup = lb.defaultTargetGroup 20 }] 21 } 22 } 23 } 24 25 output url { 26 __logicalName = "url" 27 value = lb.loadBalancer.dnsName 28 }