Skip to content

Commit

Permalink
Use shorter names
Browse files Browse the repository at this point in the history
  • Loading branch information
tremble committed May 21, 2021
1 parent 981ca25 commit e9e29ef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/integration/targets/sns_topic/defaults/main.yml
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"

0 comments on commit e9e29ef

Please sign in to comment.