Untitled
unknown
plain_text
a year ago
1.1 kB
5
Indexable
def generate_gamma_sns_subscriptions <% old_gamma_regions = [ 'ap-northeast-1', 'us-east-1', 'ap-south-1', 'eu-north-1', 'me-south-1', 'eu-south-1' ] %> [ <%- require 'json' -%> <%- @regions.each { |r| -%> <%- if r.arn_partition == "aws" -%> <%- unless old_gamma_regions.include?(r.region_name) %> <%- sns_arn = r.service('aws-account-events-service').custom_properties["resource_event_test_topic_preprod"] -%> <%- cup_gamma_service_account_id = r.service('upm-sdc-config').custom_properties["CUPServiceAccountID-gamma"] -%> <%- sns_arn = r.service('aws-account-events-service').custom_properties["resource_event_global_topic"] unless old_gamma_regions.include?(r.region_name) -%> <%- unless cup_gamma_service_account_id.to_s.strip.empty? %> { "sqsArn" => "<%= "arn:#{r.arn_partition}:sqs:#{r.region_name}:" %><%= cup_gamma_service_account_id %><%= ":cognito-idp-adms-subscriber-gamma-#{r.airport_code.downcase}" %>", "snsArn" => "<%= sns_arn %>" }, <%- end -%> <%- end -%> <%- end } -%> ] end
Editor is loading...
Leave a Comment