shinesolutions / ruby_aem_aws

Ruby client for Shine Solutions Adobe Experience Manager (AEM) Platform on AWS
Apache License 2.0
3 stars 8 forks source link

instance descriptor filter #10

Open mbloch1986 opened 6 years ago

mbloch1986 commented 6 years ago

The ec2 instance filter filter_for_descriptor in abstract_component.rb contains the stackprefix, component and ec2 instance name. Do we really need the ec2 instance name ? As it should be enough to filter a aem instance for stack_prefix and component?

The reason is, after promoting the author standby as a author primary, the filter can't find the author-standby as a author primary instance, cause the name of the ec2 instance is still aem author standby.

mbloch1986 commented 6 years ago

Filter atm:

{
        filters: [
          { name: 'tag:StackPrefix', values: [@descriptor.stack_prefix] },
          { name: 'tag:Component', values: [@descriptor.ec2.component] },
          { name: 'tag:Name', values: [@descriptor.ec2.name] }
        ]
      }

Filter only by stackprefix and component

      {
        filters: [
          { name: 'tag:StackPrefix', values: [@descriptor.stack_prefix] },
          { name: 'tag:Component', values: [@descriptor.ec2.component] },
        ]
      }
mbloch1986 commented 5 years ago

I'm turning this into a bug, since the consolidated ruby_aem_aws client isn't working due to this filter.