Skip to content
Snippets Groups Projects
Unverified Commit 84c6251c authored by Thomas F. Duellmann's avatar Thomas F. Duellmann Committed by GitHub
Browse files

AWS S3 Bucket URLs (#91)

parent 1dc805fd
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,12 @@ node_types: ...@@ -12,6 +12,12 @@ node_types:
type: string type: string
region: region:
type: string 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: requirements:
- host: - host:
capability: tosca.capabilities.Container capability: tosca.capabilities.Container
......
...@@ -14,6 +14,8 @@ A node type that represents an AWS S3 Bucket. ...@@ -14,6 +14,8 @@ A node type that represents an AWS S3 Bucket.
| Name | Type | Default Value | Description | | Name | Type | Default Value | Description |
|:---- |:---- |:------------- |:----------- | |:---- |:---- |:------------- |:----------- |
| `arn` | `string` | | Amazon's resource name for this bucket | | `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 ### Requirements
......
...@@ -12,3 +12,5 @@ ...@@ -12,3 +12,5 @@
data: data:
bucket_name: "{{ bucket_name }}" bucket_name: "{{ bucket_name }}"
region: "{{ aws_region }}" 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"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment