Skip to content
This repository was archived by the owner on Jun 5, 2020. It is now read-only.
This repository was archived by the owner on Jun 5, 2020. It is now read-only.

security_groups not updated on running ec2_instance, only during provisioning #151

Open
@danieldreier

Description

@danieldreier

I'm seeing a behavior that prevents me from using this module from updating the security group membership of existing ec2 instances. Here's how I reproduce it:

  1. Provision an ec2 instance using ec2_instance resource, with the security groups parameter set to ['group1']
  2. Apply the same puppet manifest from the first step, but with the security groups parameter set to ['group2', 'group3']

At this point, I would expect that the ec2 instance would be associated with security groups group2 and group3, and not group1. The behavior I'm seeing is that it's a member of group1.

However, if I destroy the ec2 instance and then re-run the manifest from step 2, the instance is created belonging to group2 and group3 as expected. Since this works, I don't think my manifest is in error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions