From 3f91b4b06db42b934990b192e22ed37b7ccb1c7d Mon Sep 17 00:00:00 2001 From: Andrew Kuklewicz Date: Mon, 23 Mar 2026 14:48:06 -0400 Subject: [PATCH 1/2] Get api url into an env var --- spire/templates/apps-200A.yml | 1 + spire/templates/apps/feeder.yml | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/spire/templates/apps-200A.yml b/spire/templates/apps-200A.yml index 29305b2f..5d262ba8 100644 --- a/spire/templates/apps-200A.yml +++ b/spire/templates/apps-200A.yml @@ -286,6 +286,7 @@ Resources: EchoServiceToken: !Ref EchoServiceToken SlackMessageRelaySnsTopicArn: !Ref SlackMessageRelaySnsTopicArn Aarch64AsgCapacityProviderName: !Ref Aarch64AsgCapacityProviderName + ApplePodcastsConnectApiUrl: !Sub /prx/${EnvironmentTypeAbbreviation}/Spire/Dovetail-Feeder/apple-podcasts-connect-api-url Tags: - { Key: prx:meta:tagging-version, Value: "2021-04-07" } - { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName } diff --git a/spire/templates/apps/feeder.yml b/spire/templates/apps/feeder.yml index c6751907..82fd7f4b 100644 --- a/spire/templates/apps/feeder.yml +++ b/spire/templates/apps/feeder.yml @@ -73,6 +73,7 @@ Parameters: DovetailAppleApiBridgeEndpointUrl: { Type: String } SlackMessageRelaySnsTopicArn: { Type: String } Aarch64AsgCapacityProviderName: { Type: String } + ApplePodcastsConnectApiUrl: { Type: AWS::SSM::Parameter::Value } Conditions: IsProduction: !Equals [!Ref EnvironmentType, Production] @@ -905,6 +906,8 @@ Resources: Value: !Ref S3SigningAccessKeyId - Name: UPLOAD_SIGNING_SERVICE_URL Value: !Ref S3SigningEndpointUrl + - Name: APPLE_PODCASTS_CONNECT_API_URL + Value: !Ref ApplePodcastsConnectApiUrl Essential: true Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/${EcrImageTag} LinuxParameters: @@ -1091,9 +1094,11 @@ Resources: Value: !Ref FeederUploadsBucket - Name: WORKER_COUNT Value: !If [IsProduction, 8, 5] + - Name: APPLE_PODCASTS_CONNECT_API_URL + Value: !Ref ApplePodcastsConnectApiUrl Essential: true HealthCheck: - Command: [ "CMD-SHELL", "pgrep -f shoryuken || exit 1" ] + Command: ["CMD-SHELL", "pgrep -f shoryuken || exit 1"] Interval: 30 Retries: 3 StartPeriod: 15 From a2be3fab92ae5d17db16bd0f4a52c5074e0805f4 Mon Sep 17 00:00:00 2001 From: Andrew Kuklewicz Date: Mon, 23 Mar 2026 16:23:22 -0400 Subject: [PATCH 2/2] Make aud name value a param as well --- spire/templates/apps-200A.yml | 1 + spire/templates/apps/feeder.yml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/spire/templates/apps-200A.yml b/spire/templates/apps-200A.yml index 5d262ba8..d4e43692 100644 --- a/spire/templates/apps-200A.yml +++ b/spire/templates/apps-200A.yml @@ -287,6 +287,7 @@ Resources: SlackMessageRelaySnsTopicArn: !Ref SlackMessageRelaySnsTopicArn Aarch64AsgCapacityProviderName: !Ref Aarch64AsgCapacityProviderName ApplePodcastsConnectApiUrl: !Sub /prx/${EnvironmentTypeAbbreviation}/Spire/Dovetail-Feeder/apple-podcasts-connect-api-url + ApplePodcastsConnectApiAudName: !Sub /prx/${EnvironmentTypeAbbreviation}/Spire/Dovetail-Feeder/apple-podcasts-connect-api-aud-name Tags: - { Key: prx:meta:tagging-version, Value: "2021-04-07" } - { Key: prx:cloudformation:stack-name, Value: !Ref AWS::StackName } diff --git a/spire/templates/apps/feeder.yml b/spire/templates/apps/feeder.yml index 82fd7f4b..62456456 100644 --- a/spire/templates/apps/feeder.yml +++ b/spire/templates/apps/feeder.yml @@ -74,6 +74,7 @@ Parameters: SlackMessageRelaySnsTopicArn: { Type: String } Aarch64AsgCapacityProviderName: { Type: String } ApplePodcastsConnectApiUrl: { Type: AWS::SSM::Parameter::Value } + ApplePodcastsConnectApiAudName: { Type: AWS::SSM::Parameter::Value } Conditions: IsProduction: !Equals [!Ref EnvironmentType, Production] @@ -908,6 +909,8 @@ Resources: Value: !Ref S3SigningEndpointUrl - Name: APPLE_PODCASTS_CONNECT_API_URL Value: !Ref ApplePodcastsConnectApiUrl + - Name: APPLE_PODCASTS_CONNECT_API_AUD_NAME + Value: !Ref ApplePodcastsConnectApiAudName Essential: true Image: !Sub ${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/${EcrImageTag} LinuxParameters: @@ -1096,6 +1099,8 @@ Resources: Value: !If [IsProduction, 8, 5] - Name: APPLE_PODCASTS_CONNECT_API_URL Value: !Ref ApplePodcastsConnectApiUrl + - Name: APPLE_PODCASTS_CONNECT_API_AUD_NAME + Value: !Ref ApplePodcastsConnectApiAudName Essential: true HealthCheck: Command: ["CMD-SHELL", "pgrep -f shoryuken || exit 1"]