Skip to content

Commit

Permalink
Update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonherbert committed Jul 31, 2024
1 parent 656f7d8 commit e550657
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
27 changes: 26 additions & 1 deletion cdk/lib/__snapshots__/recipes-backend.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ exports[`The RecipesBackend stack matches the snapshot 1`] = `
"GuParameter",
"GuParameter",
"GuParameter",
"GuParameter",
"GuParameter",
"GuLambdaFunction",
"GuLambdaFunction",
"GuLambdaErrorPercentageAlarm",
Expand Down Expand Up @@ -75,6 +77,16 @@ exports[`The RecipesBackend stack matches the snapshot 1`] = `
"Default": "/account/content-api-common/alarms/urgent-alarm-topic",
"Type": "AWS::SSM::Parameter::Value<String>",
},
"faciaPublishStatusSNSTopicParam": {
"Default": "/TEST/content-api/recipes-responder/facia-status-sns-topic-arn",
"Description": "Topic ARN for publication status messages",
"Type": "String",
},
"faciaPublishStatusSNSTopicRoleParam": {
"Default": "/TEST/content-api/recipes-responder/facia-status-sns-topic-role-arn",
"Description": "Topic role ARN for publication status messages",
"Type": "String",
},
"faciaSNSTopicParam": {
"Default": "/TEST/content-api/recipes-responder/facia-sns-topic-arn",
"Description": "The ARN of the facia-tool SNS topic that emits curation notifications",
Expand Down Expand Up @@ -1560,7 +1572,7 @@ def submit_response(event: dict, context, response_status: str, error_message: s
},
"Type": "AWS::SQS::QueuePolicy",
},
"RecipesFaciaConnectionRecipesBackendRecipesFaciafaciaSNSTopic4A8496A449BAE420": {
"RecipesFaciaConnectionRecipesBackendRecipesFaciafaciaPublishSNSTopicA854730B0579B71E": {
"DependsOn": [
"RecipesFaciaConnectionPolicyC7CB124D",
],
Expand Down Expand Up @@ -1635,6 +1647,12 @@ def submit_response(event: dict, context, response_status: str, error_message: s
"Variables": {
"APP": "recipes-facia-responder",
"CONTENT_URL_BASE": "recipes.guardianapis.com",
"FACIA_PUBLISH_STATUS_ROLE_ARN": {
"Ref": "faciaPublishStatusSNSTopicRoleParam",
},
"FACIA_PUBLISH_STATUS_TOPIC_ARN": {
"Ref": "faciaSNSTopicParam",
},
"FASTLY_API_KEY": {
"Ref": "fastlyKey",
},
Expand Down Expand Up @@ -1904,6 +1922,13 @@ def submit_response(event: dict, context, response_status: str, error_message: s
],
},
},
{
"Action": "sts:AssumeRole",
"Effect": "Allow",
"Resource": {
"Ref": "faciaPublishStatusSNSTopicRoleParam",
},
},
{
"Action": [
"sqs:ReceiveMessage",
Expand Down
3 changes: 2 additions & 1 deletion cdk/lib/facia-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ export class FaciaConnection extends Construct {
FASTLY_API_KEY: fastlyKeyParam.valueAsString,
STATIC_BUCKET: serving.staticBucket.bucketName,
CONTENT_URL_BASE: contentUrlBase,
FACIA_PUBLISH_STATUS_TOPIC_ARN: faciaPublishStatusSNSTopic.topicArn
FACIA_PUBLISH_STATUS_TOPIC_ARN: faciaPublishStatusSNSTopic.topicArn,
FACIA_PUBLISH_STATUS_ROLE_ARN: faciaPublishStatusSNSRole.roleArn
},
fileName: 'facia-responder.zip',
functionName: `RecipesFaciaResponder-${scope.stage}`,
Expand Down

0 comments on commit e550657

Please sign in to comment.