-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(aws-ecs): Assign public IP is not supported for this launch type #13348
Comments
Hi @mostafafarzaneh! Do you have private and public subnets set up in the VPC you are trying to launch this in? It might be helpful to include the code you are using to spin up your ECS cluster, but this looks like you are trying to assign a a public IP address while using
Also, I would recommend using the Let me know if that helps! |
Yes. I am trying to do this. Because Fargate is using
Because the Ec2Service construct does not allow me to assign a custom capacity provider I have to use CfnService construct. Take look at it here. |
Right, so unfortunately you cannot assign a public IP to services using the Also, Autoscaling group capacity providers are not yet fully supported in CloudFormation -- you can follow the progress of that issue here. We also are tracking it on the ECS project board here. Closing this issue for now, but please feel free to reopen if you have further questions! |
|
@mostafafarzaneh You can find the public IP and the public DNS as follows: An example can be found here: This uses the container host's public IP. |
I am trying to create an ECS service using the EC2 launch type and want to assign a public IP address to it.
Reproduction Steps
What did you expect to happen?
I want to assign public IP address to the EC2
What actually happened?
I get the
Assign public IP is not supported for this launch type
errorEnvironment
Other
I should mention that because I use a capacity provider other than FARGATE, I have to use
CfnService
instead ofEc2Service
API. hereThis is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: