-
Notifications
You must be signed in to change notification settings - Fork 398
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 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 |
---|---|---|
@@ -1,15 +1,16 @@ | ||
sns_topic_topic_name: "{{ resource_prefix }}-topic" | ||
unique_id: "{{ resource_prefix | md5sum }}" | ||
|
||
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] }}" | ||
sns_topic_lambda_function: "sns_topic_lambda" | ||
sns_topic_lambda_name: "{{ resource_prefix }}-{{ sns_topic_lambda_function }}" | ||
sns_topic_lambda_name: "ansible-test-{{ unique_id }}-{{ sns_topic_lambda_function }}" | ||
# IAM role names have to be less than 64 characters | ||
# The 8 digit identifier at the end of resource_prefix helps determine during | ||
# which test something was created and allows tests to be run in parallel | ||
# Shippable resource_prefixes are in the format shippable-123456-123, so in those cases | ||
# we need both sets of digits to keep the resource name unique | ||
unique_id: "{{ resource_prefix | regex_search('(\\d+-?)(\\d+)$') }}" | ||
sns_topic_lambda_role: "ansible-test-{{ unique_id }}-sns-lambda" |