0

I have installed the AWS ruby sdk.

gem install aws-sdk

Within irb:

require aws-sdk

Now I want to create a security group with all packets permitted both incoming and outgoing.

How can I do this?

John Rotenstein
  • 241,921
  • 22
  • 380
  • 470
american-ninja-warrior
  • 7,397
  • 11
  • 46
  • 80

1 Answers1

0

After looking at the documentation, I believe you would need to make three calls to authorize_ingress to accomplish this:

security_group.authorize_ingress(:tcp, 0..65535)
security_group.authorize_ingress(:udp, 0..65535)
security_group.authorize_ingress(:icmp, 0..65535)
Mark B
  • 183,023
  • 24
  • 297
  • 295