-
Notifications
You must be signed in to change notification settings - Fork 403
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #599 from mediafellows/sns_add_type_param
Allow specifying topic type for SNS module. SUMMARY Adding a topic_type param to SNS module (simillar to SQS). ISSUE TYPE Feature Pull Request COMPONENT NAME sns_topic module ADDITIONAL INFORMATION Simillar to SQS queues, SNS topics also allow specifying a type, that can either be 'Standard' or 'FIFO'. Furthermore if you have a FIFO SQS queue and want to subscribe that to an SNS topic, that one has to be FIFO too. Hence adding this flag is important and is actually just another option for the creat_topic action in Boto, see https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/sns.html#SNS.Client.create_topic Reviewed-by: Stefan Horning <None> Reviewed-by: Alina Buzachis <None> Reviewed-by: Mark Chappell <None>
- Loading branch information
Showing
5 changed files
with
105 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
minor_changes: | ||
- sns_topic - Added ``topic_type`` parameter to select type of SNS topic (either FIFO or Standard) (https://github.com/ansible-collections/community.aws/pull/599). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
# reason: missing-policy | ||
unsupported | ||
|
||
cloud/aws |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
sns_topic_topic_name: "{{ resource_prefix }}-topic" | ||
# we hash the resource_prefix to get a shorter, unique string | ||
unique_id: "{{ resource_prefix | hash('md5') }}" | ||
|
||
sns_topic_topic_name: "ansible-test-{{ unique_id }}-topic" | ||
sns_topic_subscriptions: | ||
- endpoint: "{{ sns_topic_subscriber_arn }}" | ||
protocol: "lambda" | ||
sns_topic_third_party_topic_arn: "arn:aws:sns:us-east-1:806199016981:AmazonIpSpaceChanged" | ||
sns_topic_third_party_region: "{{ sns_topic_third_party_topic_arn.split(':')[3] }}" | ||
|
||
# additional test resource namings | ||
sns_topic_lambda_function: "sns_topic_lambda" | ||
sns_topic_lambda_name: "{{ resource_prefix }}-{{ sns_topic_lambda_function }}" | ||
# IAM role names have to be less than 64 characters | ||
# we hash the resource_prefix to get a shorter, unique string | ||
unique_id: "{{ resource_prefix | hash('md5') }}" | ||
sns_topic_lambda_name: "ansible-test-{{ unique_id }}-{{ sns_topic_lambda_function }}" | ||
sns_topic_lambda_role: "ansible-test-{{ unique_id }}-sns-lambda" |
Oops, something went wrong.