Skip to content

Commit

Permalink
Merge pull request #121 from satellite-no/feature/allow-ec2-role
Browse files Browse the repository at this point in the history
if sqs sensor config None set to None
  • Loading branch information
amanda11 committed Jun 21, 2022
2 parents 0cb5beb + 26b10ed commit cc8ff4f
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 12 deletions.
36 changes: 26 additions & 10 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,56 @@
# Changelog

## 2.0.2

- Fixed bug in SQS sensor that sets "None" to aws key/secret vs allowing it to use the instance role.

## 2.0.1

- Deleted duplicate `headers` parameter in `actions/apigateway_test_invoke_authorizer.yaml` and
`actions/apigateway_test_invoke_method.yaml`

## 2.0.0

* Drop Python 2.7 support
- Drop Python 2.7 support

## 1.3.5

- Fix python3 problems when account_id or region empty

## 1.3.4

- Change `queue` parameter type in sensor payload from `urllib.parse.ParseResult` to `str`.

## 1.3.3

- Fix aliases 'ec2_start_instance' and 'ec2_stop_instance'

## 1.3.2

- Solved the bug regarding `aws_session_token` parameter for `boto3` cross account authentication in `actions.py`.

## 1.3.1

- Actions support multiaccount integration.

## 1.3.0

- `sqs_sensor` supports multiaccount integration.

## 1.2.3

- Support Python 3 everywhere

## 1.2.2

- Fix `sqs_sensor` to parse payload as dictionary (so that it actually works)

## 1.2.1

- Update `kwargs['user_data`] to `kwargs['UserData']` per the aws.ec2_run_instances action.

## 1.2.0

- Update `st2_user_data` to take raw data as input as an alternative to file path.

## 1.1.1
Expand Down Expand Up @@ -76,16 +91,17 @@
- Updated action `runner_type` from `run-python` to `python-script`

## v0.9.3
* Adding aliases for ec2 actions (list/start/stop) machines

- Adding aliases for ec2 actions (list/start/stop) machines

## v0.9.2

* Fix all the boto3 actions (autoscaling, etc.) so they work. Previously they didn't work because
- Fix all the boto3 actions (autoscaling, etc.) so they work. Previously they didn't work because
credentials weren't correctly passed in. #26

## v0.9.1

* Corrected incomplete error handling and validation of configuration (#22).
- Corrected incomplete error handling and validation of configuration (#22).

## v0.6.0

Expand All @@ -97,20 +113,20 @@ If you previously accessed the result of the ec2_run_instances action in the act

## v0.3.0

* Added CloudFormation, VPC, IAM, RDS, SQS, S3
- Added CloudFormation, VPC, IAM, RDS, SQS, S3

## v0.2.0

* Added Route53
- Added Route53

## v0.1.0

* Initial release
- Initial release

## v0.3.0
## v0.3.1

* Add aws.sqs_sensor which can monitor given sqs queue and trigger aws.sqs_new_message
- Add aws.sqs_sensor which can monitor given sqs queue and trigger aws.sqs_new_message

## v0.4.0

* Add support for handling multiple input_queues to aws.sqs_sensor
- Add support for handling multiple input_queues to aws.sqs_sensor
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ region:
sqs_sensor:
input_queues:
- first_queue
- second_queue
- second_queue (queue list can be url or queue name)
sqs_other:
max_number_of_messages: 1
```
Expand Down
2 changes: 1 addition & 1 deletion pack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ keywords:
- SQS
- lambda
- kinesis
version: 2.0.1
version: 2.0.2
author : StackStorm, Inc.
email : [email protected]
python_versions:
Expand Down
3 changes: 3 additions & 0 deletions sensors/sqs_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ def _get_config_entry(self, key, prefix=None):
if not value and config.get('setup', None):
value = config['setup'].get(key, None)

if value == "None":
value = None

return value

def _may_setup_sqs(self):
Expand Down

0 comments on commit cc8ff4f

Please sign in to comment.