...
Code Block | ||||
---|---|---|---|---|
| ||||
#!/usr/bin/python3
import boto3
from botocore.client import Config
access_key_id='xx' # from Morpheus Cypher
secret_access_key='xx' # from Morpheus Cypher
ceph_endpoint = "<ceph endpoint>"
region = 'default' # required by boto3, any value works
arn = 'arn:aws:sns:default::example-topic'
sns = boto3.client('sns',
region_name=region,
endpoint_url=ceph_endpoint ,
aws_access_key_id=access_key_id,
aws_secret_access_key=secret_access_key,
config=Config(signature_version='s3'))
# Delete the SNS topic
response = sns.delete_topic(TopicArn=arn)
|
...