Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

See How to create S3 buckets in Morpheus - European Weather Cloud Knowledge Base - ECMWF Confluence Wiki for available ceph_endpoints.

Set topic policy

...

Note that topic names are public (TODO: what else is public?)

Set up notifications

Notifications can be configured following:

...

Code Block
python
python
#!/usr/bin/python3
import boto3

access_key_id='xx' # from Cypher
secret_access_key='xx'  # from Cypher 
ceph_endpoint = "https://s3.waw3-1.cloudferro.com"
region = 'waw3-1'  # required by boto3, any value works 

arn = 'arn:aws:sns:waw3-1::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)

# Delete the SNS topic
response = sns.delete_topic(TopicArn=arn)

TODO: delete notifications

TODO: get details of the notification configuration

TODO: get details of the topics