Skip to content

Commit 68a350d

Browse files
author
Radek Smogura
committed
Add readme
1 parent 2a9be38 commit 68a350d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/@aws-cdk/aws-ec2/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,16 @@ instance.userData.addExecuteFileCommand({
978978
asset.grantRead( instance.role );
979979
```
980980

981+
In addition to above the `MultipartUserData` can be used to change instance startup behavior. Multipart user data are composed
982+
from separate parts forming archive. The moment, and behavior of each part can be controlled with `Content-Type`, and it's wider
983+
than executing shell scripts.
984+
985+
Some services (like AWS Batch) allows only `MultipartUserData`.
986+
987+
For more information see
988+
[Specifying Multiple User Data Blocks Using a MIME Multi Part Archive](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/bootstrap_container_instance.html#multi-part_user_data)
989+
990+
981991
## Importing existing subnet
982992

983993
To import an existing Subnet, call `Subnet.fromSubnetAttributes()` or

0 commit comments

Comments
 (0)