diff --git a/src/Provider/AwsProvider.php b/src/Provider/AwsProvider.php index 2a4b5de..c158cf1 100755 --- a/src/Provider/AwsProvider.php +++ b/src/Provider/AwsProvider.php @@ -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]);