tall-oil-62666
11/04/2020, 5:22 AMerror: preview failed
panic: interface conversion: interface {} is string, not int
goroutine 184 [running]:
<http://github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsEcsLoadBalancerHash(0x556d040|github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsEcsLoadBalancerHash(0x556d040>, 0xc002350420, 0xc00232fa10)
/home/runner/go/pkg/mod/github.com/pulumi/terraform-provider-aws@v1.38.1-0.20201023104507-9632e543c200/aws/resource_aws_ecs_service.go:1169 +0x47f
Offending config - note the portMappings, first line is ok, fails when using the ApplicationListener, have also tried the NetworkListener
const httpListener = new awsx.lb.ApplicationListener("http-listener", {
external: true,
port: 80,
});
let actAdminService = new awsx.ecs.FargateService(serviceName, {
name: serviceName,
cluster,
desiredCount: 1,
serviceRegistries: {
registryArn: discoveryService.arn,
},
taskDefinitionArgs: {
container: {
image: imageName,
memory: 256,
portMappings: [
// THIS WORKS { containerPort: 80, hostPort: 80, protocol: "tcp" }, { containerPort: 443, hostPort: 443, protocol: "tcp" }
httpListener //THIS FAILS
],
},
executionRole: execRole,
},
platformVersion: context.defaultPlatformVersion,
});
As well as https://medium.com/it-dead-inside/deploy-aws-fargate-clusters-with-pulumi-e06637e6821d and example here https://www.pulumi.com/blog/get-started-with-docker-on-aws-fargate-using-pulumi/No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by