Ec2Service: Cannot attach Ec2Service with NetworkModes HOST or BRIDGE to CloudMap service. #29245
Labels
@aws-cdk/aws-ec2
Related to Amazon Elastic Compute Cloud
bug
This issue is a bug.
effort/medium
Medium work item – several days of effort
p2
Describe the bug
I want to attach an EC2Service and container to a CloudMap namespace.
The container is using
bridge
network mode as it doesn't need special access to the network, and I'm assuming CloudMap can provide my clients with the port resolved by the container, also I want to deploy more containers than I can attach ENIs for on this instance size (so I am not using awsvpc).I cannot use Service Connect as I do not want to bring this service into my namespace (AWS please let us attach multiple namespaces to services!!)
The bug is that with these network modes,
AssociateCloudMapService
gives an error.Expected Behavior
The EC2Service/Container should be attached to the CloudMap service.
Current Behavior
Reproduction Steps
I have the following configuration:
Possible Solution
I'm not sure how it transforms the C# into CDK, but I assume it can pull the container name and port from the referenced container, and attach this?
Additional Information/Context
No response
CDK CLI Version
2.121.1 (build d86bb1a)
Framework Version
No response
Node.js Version
v19.8.1
OS
Windows
Language
.NET
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: