Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-987

AWS EC2: if specifying subnet ID, security groups are not created

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9.0
    • 2.0.0
    • jclouds-compute

    Description

      If the template options for an EC2 instance specify a subnet ID, then jclouds will not create any security groups.

      This is defined in this piece of code:
      https://github.com/jclouds/jclouds/blob/master/providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/compute/strategy/CreateKeyPairPlacementAndSecurityGroupsAsNeededAndReturnRunOptions.java#L182

      The if statement checks if subnet has been set; the "false" part causes security groups to be created, but the "true" part does not - therefore if the subnet ID is set there are no security groups created.

      The workaround is for the user to define the security groups ahead of time and specify the security group IDs in the template options.

      Attachments

        Activity

          People

            nacx Ignasi Barrera
            rdowner Richard Downer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: