As a user I want to be able to run bolt commands on my EC2 instances without manually adding them to my inventory.
We should have an inventory discovery integration that gets targets from AWS. It should only get targets that are EC2 instances. Users should have the ability to filter instances based on the following. Filters are and'd together, not or'd: * Tags
{code} target-lookups: - plugin: aws::ec2 filter: - name: tag:Owner value: 'Cody' - name: tag-key # Anything that has OtherKey tag defined value: OtherKey {code}
As a user I want to be able to run bolt commands on my EC2 instances without manually adding them to my inventory.
We should have an inventory discovery integration that gets targets from AWS. It should only get targets that are EC2 instances. Users should have the ability to filter instances based on the following. Filters are and'd together, not or'd: * Tags
{code} target-lookups: - plugin: aws::ec2 filter: - name: tag:Owner value: 'Cody' - name: tag-key # Anything that has OtherKey tag defined value: OtherKey
name: tag.name config: ssh: host: instance.ipAddress tmpdir: instance.tmpdir {code} #### Questions: Should we filter out terminated instances? Decide later, but maybe have an option to turn it off?
As a user I want to be able to run bolt commands on my EC2 instances without manually adding them to my inventory.
We should have an inventory discovery integration that gets targets from AWS. It should only get targets that are EC2 instances. Users should have the ability to filter instances based on the following. Filters are and'd together, not or'd: * Tags
{code} target-lookups: - plugin: aws::ec2 filter: - name: tag:Owner value: 'Cody' - name: tag-key # Anything that has OtherKey tag defined value: OtherKey name: tag.name config: ssh: host: instance.ipAddress
{code}
**Questions**:
Should we filter out terminated instances? Decide later, but maybe have an option to turn it off?
As a user I want to be able to run bolt commands on my EC2 instances without manually adding them to my inventory.
We should have an inventory discovery integration that gets targets from AWS. It should only get targets that are EC2 instances. Users should have the ability to filter instances based on the following. Filters are and'd together, not or'd: * Tags
{code} target-lookups: - plugin: aws::ec2 filter: - name: tag:Owner value: 'Cody' - name: tag-key # Anything that has OtherKey tag defined value: OtherKey name: tag.name config: ssh: host: instance.ipAddress
tmpdir: instance.tmpdir {code}
####** Questions**:
Should we filter out terminated instances? Decide later, but maybe have an option to turn it off?
As a user I want to be able to run bolt commands on my EC2 instances without manually adding them to my inventory.
We should have an inventory discovery integration that gets targets from AWS. It should only get targets that are EC2 instances. Users should have the ability to filter instances based on the following. Filters are and'd together, not or'd: * Tags
Users should be able to reference instance data with{{instance.<attribute>}} in the {{name}}, {{uri}}, or {{config}}. They should also be able to set these to tag values using {{tags.<tag>}}.
{code}
target-lookups: - plugin: aws::ec2 filter: - name: tag:Owner value: 'Cody' - name: tag-key # Anything that has OtherKey tag defined value: OtherKey
name: tag tags.name
config: ssh: host: instance.ipAddress {code}
*Questions*:
Should we filter out terminated instances? Decide later, but maybe have an option to turn it off?
As a user I want to be able to run bolt commands on my EC2 instances without manually adding them to my inventory.
We should have an inventory discovery integration that gets targets from AWS. It should only get targets that are EC2 instances. Users should have the ability to filter instances based on the following. Filters are and'd together, not or'd: * Tags
Users should be able to reference instance data with {{instance.<attribute>}} in the {{name}}, {{uri}}, or {{config}}. They should also be able to set these to tag values using {{tags.<tag>}}.
{code}
target-lookupstargets: - plugin _plugin: aws::ec2
filter: - name: tag:Owner value: 'Cody' - name: tag-key # Anything that has OtherKey tag defined value: OtherKey
As a user I want to be able to run bolt commands on my EC2 instances without manually adding them to my inventory.
We should have an inventory discovery integration that gets targets from AWS. It should only get targets that are EC2 instances. Users should have the ability to filter instances based on the following. Filters are and'd together, not or'd: * Tags
Users should be able to reference instance data with {{instance.<attribute>}} in the {{name}}, {{uri}}, or {{config}}. They should also be able to set these to tag values using {{tags.<tag>}}.
{code}
targets: - _plugin: aws::ec2
filter: - name: tag:Owner value: 'Cody' - name: tag-key # Anything that has OtherKey tag defined value: OtherKey
name: tags instance.name
config: ssh: host: instance.ipAddress {code}
*Questions*: Should we filter out terminated instances? Decide later, but maybe have an option to turn it off?
As a user I want to be able to run bolt commands on my EC2 instances without manually adding them to my inventory.
We should have an inventory discovery integration that gets targets from AWS. It should only get targets that are EC2 instances. Users should have the ability to filter instances based on the following. Filters are and'd together, not or'd: * Tags
Users should be able to reference instance data with {{instance.<attribute>}} in the {{name}}, {{uri}}, or {{config}}. They should also be able to set these to tag values using {{tags.<tag>}}.
{code} targets: - _plugin: aws::ec2 filter: - name: tag:Owner value: 'Cody' - name: tag-key # Anything that has OtherKey tag defined value: OtherKey
By default the aws-sdk-ec2 gem will return all instances, even if they're not running. Since non-running instaces do not have a public ip address or dns name, we probably want to filter these out. Another approach is to use the private ip address and dns name for any non-running instances, but I'm not sure how useful this is.
As a user I want to be able to run bolt commands on my EC2 instances without manually adding them to my inventory.
We should have an inventory discovery integration that gets targets from AWS. It should only get targets that are EC2 instances. Users should have the ability to filter instances based on the following. Filters are and'd together, not or'd: * Tags
Users should be able to reference instance data with {{instance.<attribute>}} in the {{name}}, {{uri}}, or {{config}}. They should also be able to set these to tag values using {{tags.<tag>}}.
{code} targets: - _plugin: aws::ec2
region: us-west2
filter: - name: tag:Owner value: 'Cody' - name: tag-key # Anything that has OtherKey tag defined value: OtherKey name: instance.name config: ssh: host: instance.ipAddress {code}
*Questions*: Should we filter out terminated instances? Decide later, but maybe have an option to turn it off?