Skip to content

Commit

Permalink
Add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Radek Smogura committed Jan 21, 2021
1 parent 2a9be38 commit 68a350d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/@aws-cdk/aws-ec2/README.md
Expand Up @@ -978,6 +978,16 @@ instance.userData.addExecuteFileCommand({
asset.grantRead( instance.role );
```

In addition to above the `MultipartUserData` can be used to change instance startup behavior. Multipart user data are composed
from separate parts forming archive. The moment, and behavior of each part can be controlled with `Content-Type`, and it's wider
than executing shell scripts.

Some services (like AWS Batch) allows only `MultipartUserData`.

For more information see
[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)


## Importing existing subnet

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

0 comments on commit 68a350d

Please sign in to comment.