full-dress-10026
12/11/2018, 1:43 AMassociatePublicIpAddress: true
in launchConfigurationArgs
when calling createAndAddAutoScalingGroup
. Still no change to the Auto-assign public IP field.big-piano-35669
full-dress-10026
12/11/2018, 1:50 AMassignPublicIP
are "ENABLED" | "DISABLED"
. Pulumi takes a boolean for that value.
[1] https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service_definition_parameters.htmlbig-piano-35669
full-dress-10026
12/11/2018, 1:58 AMlemon-spoon-91807
12/11/2018, 2:03 AMStill no change to the Auto-assign public IP field.
full-dress-10026
12/11/2018, 2:04 AMlemon-spoon-91807
12/11/2018, 2:04 AMfull-dress-10026
12/11/2018, 2:04 AMlemon-spoon-91807
12/11/2018, 2:06 AMfull-dress-10026
12/11/2018, 2:07 AMlemon-spoon-91807
12/11/2018, 2:07 AMfull-dress-10026
12/11/2018, 2:08 AMlemon-spoon-91807
12/11/2018, 2:09 AMnetworkConfiguration: {
assignPublicIp: false,
securityGroups: cluster.securityGroups.map(g => g.instance.id),
subnets: cluster.network.subnetIds,
},
full-dress-10026
12/11/2018, 2:11 AMlemon-spoon-91807
12/11/2018, 2:12 AMnetworkConfiguration: {
assignPublicIp: config.useFargate && !network.usePrivateSubnets,
securityGroups: securityGroups,
subnets: network.subnetIds,
},
full-dress-10026
12/11/2018, 2:12 AMconst cluster = new infra.x.ecs.Cluster("fibonacci", {
name: "fibonacci",
});
lemon-spoon-91807
12/11/2018, 2:12 AMfull-dress-10026
12/11/2018, 2:13 AMnetwork
?lemon-spoon-91807
12/11/2018, 2:13 AMnetworkConfiguration: {
assignPublicIp: false,
securityGroups: cluster.securityGroups.map(g => g.instance.id),
subnets: cluster.network.subnetIds,
},
full-dress-10026
12/11/2018, 2:14 AMlemon-spoon-91807
12/11/2018, 2:14 AMfull-dress-10026
12/11/2018, 2:15 AMlemon-spoon-91807
12/11/2018, 2:15 AMfull-dress-10026
12/11/2018, 5:26 PMlemon-spoon-91807
12/11/2018, 5:45 PMfull-dress-10026
12/11/2018, 5:58 PMlemon-spoon-91807
12/11/2018, 5:58 PMfull-dress-10026
12/11/2018, 5:59 PMlemon-spoon-91807
12/11/2018, 5:59 PMfull-dress-10026
12/11/2018, 5:59 PMlemon-spoon-91807
12/11/2018, 6:00 PMfull-dress-10026
12/11/2018, 7:16 PMupdating urn:pulumi:fibonacci-dev::fibonacci::awsinfra:x:ecs:EC2Service$aws:ecs/service:Service::datadog-daemon: InvalidParameterException: Assign public IP is not supported for this launch type.
lemon-spoon-91807
12/11/2018, 7:17 PMfull-dress-10026
12/11/2018, 7:18 PMThe awsvpc network mode does not provide task elastic network interfaces with public IP addresses for tasks that use the EC2 launch type. To access the internet, tasks that use the EC2 launch type must be launched in a private subnet that is configured to use a NAT gateway. For more information, see NAT Gateways in the Amazon VPC User Guide. Inbound network access must be from within the VPC using the private IP address or DNS hostname, or routed through a load balancer from within the VPC. Tasks launched within public subnets do not have outbound network access.[1] https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-networking.html
lemon-spoon-91807
12/11/2018, 7:25 PMfull-dress-10026
12/11/2018, 7:29 PMlemon-spoon-91807
12/11/2018, 7:30 PMfull-dress-10026
12/11/2018, 7:30 PMlemon-spoon-91807
12/11/2018, 7:30 PMfull-dress-10026
12/11/2018, 7:31 PMlemon-spoon-91807
12/11/2018, 7:31 PMThis documentation assume you already have a working EC2 Container Service cluster configured. If not, review the Getting Started section in the ECS documentation.
full-dress-10026
12/11/2018, 7:35 PMlemon-spoon-91807
12/11/2018, 7:36 PMfull-dress-10026
12/11/2018, 7:37 PMlemon-spoon-91807
12/11/2018, 7:39 PMfull-dress-10026
12/11/2018, 7:41 PM