Skip to content

Commit

Permalink
Merge pull request #124 from francoispluchino/fix-sqs-fifo-topic
Browse files Browse the repository at this point in the history
Fix invalid SNS topic names with FIFO SQS queues
  • Loading branch information
k-k authored Oct 9, 2017
2 parents cf6b3ac + 86879ea commit ecde4cb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Provider/AwsProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -508,13 +508,14 @@ public function createTopic()
return false;
}

$name = str_replace('.', '-', $this->getNameWithPrefix());
$result = $this->sns->createTopic([
'Name' => $this->getNameWithPrefix()
'Name' => $name
]);

$this->topicArn = $result->get('TopicArn');

$key = $this->getNameWithPrefix() . '_arn';
$key = $name . '_arn';
$this->cache->save($key, $this->topicArn);

$this->log(200, "Created SNS Topic", ['TopicARN' => $this->topicArn]);
Expand Down

0 comments on commit ecde4cb

Please sign in to comment.