boto3_datapipeline¶
Manage Data Pipelines using boto3.¶
Renamed from
boto_datapipelinetoboto3_datapipelineand updated to call the refactoredboto3_datapipelineexecution module.
Create and destroy Data Pipelines. Be aware that this interacts with Amazon’s services, and so may incur charges.
- depends:
boto3 >= 1.28.0
botocore >= 1.31.0
This module uses boto3, which can be installed via package, or pip.
This module accepts explicit Data Pipeline credentials but can also utilize IAM roles assigned to the instance through Instance Profiles. Dynamic credentials are then automatically obtained from AWS API and no further configuration is necessary. More Information available at:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html
If IAM roles are not used you need to specify them either in the minion’s config file or as a profile. For example, to specify them in the minion’s config file:
datapipeline.keyid: GKTADJGHEIQSXMKKRBJ08H
datapipeline.key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
It’s also possible to specify key, keyid and region via a profile, either as a passed in dict, or as a string to pull from pillars or minion config:
myprofile:
keyid: GKTADJGHEIQSXMKKRBJ08H
key: askdjghsdfjkghWupUjasdflkdfklgjsdfjajkghs
region: us-east-1
ensure-present:
boto3_datapipeline.present:
- name: example
- pipeline_objects_from_pillars: my_pipeline_objects
- parameter_objects_from_pillars: my_parameter_objects
- parameter_values_from_pillars: my_parameter_values
- region: us-east-1
- profile: myprofile
Added in version 1.0.0.
- saltext.boto3.states.boto3_datapipeline.__virtual__()[source]¶
Only load if the boto3_datapipeline execution module is available.
- saltext.boto3.states.boto3_datapipeline.present(name, pipeline_objects=None, pipeline_objects_from_pillars='boto3_datapipeline_pipeline_objects', parameter_objects=None, parameter_objects_from_pillars='boto3_datapipeline_parameter_objects', parameter_values=None, parameter_values_from_pillars='boto3_datapipeline_parameter_values', region=None, key=None, keyid=None, profile=None)[source]¶
Ensure the data pipeline exists with matching definition.
- name (string)
Name of the service to ensure a data pipeline exists for.
- pipeline_objects (dict)
Pipeline objects to use. Will override objects read from pillars.
- pipeline_objects_from_pillars (string)
The pillar key to use for lookup.
- parameter_objects (dict)
Parameter objects to use. Will override objects read from pillars.
- parameter_objects_from_pillars (string)
The pillar key to use for lookup.
- parameter_values (dict)
Parameter values to use. Will override values read from pillars.
- parameter_values_from_pillars (string)
The pillar key to use for lookup.
- region (string)
Region to connect to.
- key (string)
Secret key to be used.
- keyid (string)
Access key to be used.
- profile (string)
A dict with region, key and keyid, or a pillar key (string) that contains a dict with region, key and keyid.
Example:
ensure-present: boto3_datapipeline.present: - name: example
- saltext.boto3.states.boto3_datapipeline.absent(name, region=None, key=None, keyid=None, profile=None)[source]¶
Ensure a pipeline with the given name does not exist.
- name (string)
Name of the service to ensure a data pipeline does not exist for.
- region (string)
Region to connect to.
- key (string)
Secret key to be used.
- keyid (string)
Access key to be used.
- profile (string)
A dict with region, key and keyid, or a pillar key (string) that contains a dict with region, key and keyid.
Example:
ensure-absent: boto3_datapipeline.absent: - name: example