diff --git a/nodetypes/radon.nodes.aws/AwsS3Bucket/NodeType.tosca b/nodetypes/radon.nodes.aws/AwsS3Bucket/NodeType.tosca index 584355cf58aa99bb8656d99965f47de26e196a48..dc78baf55164180210a5313bed170f8f12845b23 100644 --- a/nodetypes/radon.nodes.aws/AwsS3Bucket/NodeType.tosca +++ b/nodetypes/radon.nodes.aws/AwsS3Bucket/NodeType.tosca @@ -12,6 +12,12 @@ node_types: type: string region: type: string + bucket_url_path: + type: string + description: URL of the bucket using path-style access (https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-bucket-intro.html) + bucket_url_vhost: + type: string + description: URL of the bucket using virtual-hosted-style access (https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-bucket-intro.html) requirements: - host: capability: tosca.capabilities.Container diff --git a/nodetypes/radon.nodes.aws/AwsS3Bucket/README.md b/nodetypes/radon.nodes.aws/AwsS3Bucket/README.md index 3473a9c40ed05d0fcb26883b23394b13275fcb57..2b7d13f7feb0b466be01e40ac8ab4cf0d9bb260f 100644 --- a/nodetypes/radon.nodes.aws/AwsS3Bucket/README.md +++ b/nodetypes/radon.nodes.aws/AwsS3Bucket/README.md @@ -14,6 +14,8 @@ A node type that represents an AWS S3 Bucket. | Name | Type | Default Value | Description | |:---- |:---- |:------------- |:----------- | | `arn` | `string` | | Amazon's resource name for this bucket | +| `bucket_url_path` | `string` | | URL of the bucket using path-style access (https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-bucket-intro.html) | +| `bucket_url_vhost` | `string` | | URL of the bucket using virtual-hosted-style access (https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-bucket-intro.html) | ### Requirements diff --git a/nodetypes/radon.nodes.aws/AwsS3Bucket/files/create/create.yml b/nodetypes/radon.nodes.aws/AwsS3Bucket/files/create/create.yml index cd3456b777c843aba142361041b6fce9f86b3cbd..fd01e410bc37798f4f1bee58a50beb72860ca17c 100644 --- a/nodetypes/radon.nodes.aws/AwsS3Bucket/files/create/create.yml +++ b/nodetypes/radon.nodes.aws/AwsS3Bucket/files/create/create.yml @@ -12,3 +12,5 @@ data: bucket_name: "{{ bucket_name }}" region: "{{ aws_region }}" + bucket_url_vhost: "https://s3.{{ aws_region }}.amazonaws.com/{{ bucket_name }}" + bucket_url_path: "https://{{ bucket_name }}.s3.{{ aws_region }}.amazonaws.com"