amazon-archives / aws-service-operator

AWS Service Operator allows you to create AWS resources using kubectl.
Apache License 2.0
733 stars 103 forks source link

Issue creating sns subscription with sms protocol #204

Open computeracer opened 5 years ago

computeracer commented 5 years ago

When I create an sns subscription with the sms protocol I get this error message:

time="2019-08-21T14:45:13Z" level=error msg="error creating snssubscription 'example-subscription-name'" error="template: templating:1:3: executing \"templating\" at <call .Helpe ││ rs.GetSQSQueueByName .Config .Obj.Spec.Endpoint .Obj.Namespace>: error calling call: sqsqueues.service-operator.aws \"+11234567890\" not found" hostname=aws-service-operator-5f4d ││ 7dd8db-w9rvw

Here is my spec file:

---
apiVersion: service-operator.aws/v1alpha1
kind: SNSTopic
metadata:
  name: example-sns-topic

---
apiVersion: service-operator.aws/v1alpha1
kind: SNSSubscription
metadata:
  name: example-subscription-name
spec:
  topicName: example-sns-topic
  protocol: sms
  endpoint: "+11234567890"

Any ideas on what I am doing wrong?

Thank you.