-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Add security group examples #799
Comments
Your problem is caused by the fact that we don't have an abstraction for Normally, constructs with SecurityGroups have a instance.connections.allowFromAnywhere(new ec2.TcpPort(22)); But yes, unfortunately we don't have an L2 for |
It might bear mentioning in the docs anyway. |
Explain how to add rules to Security Groups, and rewrite the section on the Connections object a bit. Fixes #799.
Are we talking about the guide or the reference? Please add the appropriate tag. |
Is this something we still need? If so, I'll add it to the CDK Guide project. |
No need |
You know what? Maybe take a look at the ec2 readme file and see if there’s something to be added |
This seems to be covered by this one over in the CDK Guide repo. I'll link that back here for context. awsdocs/aws-cdk-guide#59 |
It would be great do find some examples how to create new security groups with ingress and egress rules. Currently its hard to find some hints how to provide the parameters for
addIngressRule
of a newly created securitygroup.Here a short typescript sample that creates a new vpc, a security-group and an ec2-instance. Maybe it is helpul:
The text was updated successfully, but these errors were encountered: