radon-h2020 / radon-particles

TOSCA definitions repository for the RADON project
Apache License 2.0
12 stars 30 forks source link

AWS S3 Bucket URLs #91

Closed duelle closed 3 years ago

duelle commented 3 years ago

This PR adds attributes to the AWS S3 Bucket TOSCA node type containing two different URL styles (path-style and vhost-style) according to the AWS docs [1]. These additional properties allow the user to directly use the URLs without the need to construct them himself. This is helpful, for example, when the URL is supposed to be used as an output of the service template (see example below).

Instead of the construction, the user could then just use the respective attribute of the bucket. E.g.,

  outputs:
    s3_path:
      type: string
      value: { get_attribute: [ AwsS3Bucket_2, bucket_url_path ] }
      required: true
      description: 'URL of the AWS S3 Bucket in path style.'
    s3_vhost:
      type: string
      value: { get_attribute: [ AwsS3Bucket_2, bucket_url_vhost ] }
      required: true
      description: 'URL of the AWS S3 Bucket in virtual-host style.'

[1] https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-bucket-intro.html