Skip to content

Commit 1ce910a

Browse files
committed
docs: add example how to share images with other accounts
To make it clear how sharing works and how to restrict sharing by AWS partition.
1 parent a7b4768 commit 1ce910a

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
awspub:
2+
source:
3+
path: "image.vmdk"
4+
architecture: "x86_64"
5+
s3:
6+
bucket_name: "awspub-toabctl"
7+
images:
8+
"my-custom-image":
9+
boot_mode: "uefi-preferred"
10+
share:
11+
- "123456789123"
12+
- "aws-cn:456789012345"

docs/how_to/publish.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,18 @@ The image needs to be created and then published:
187187
awspub create config.yaml
188188
awspub publish config.yaml
189189
190+
Sharing images
191+
~~~~~~~~~~~~~~
192+
193+
Images can be shared with other AWS accounts. For that, the account IDs of the other accounts are needed.
194+
195+
.. literalinclude:: ../config-samples/config-minimal-share.yaml
196+
:language: yaml
197+
198+
In the above example, the image `my-custom-image` will be shared with the account `1234567890123`
199+
when `awspub` runs in the commercial partition (``aws``, the default). It'll be shared
200+
with the account `456789012345` when `awspub` runs in the the china partition (``aws-cn``).
201+
190202
AWS Marketplace
191203
~~~~~~~~~~~~~~~
192204

0 commit comments

Comments
 (0)