Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ec2): multipart user data #11843

Merged
merged 7 commits into from Mar 8, 2021
Merged

feat(ec2): multipart user data #11843

merged 7 commits into from Mar 8, 2021

Commits on Mar 4, 2021

  1. feat(ec2): introduce multipart user data

    Add support for multiparat (MIME) user data for Linux environments. This
    type is more versatile type of user data, and some AWS service
    (i.e. AWS Batch) requires it in order to customize the launch
    behaviour.
    
    Change was tested in integ environment to check if all
    user data parts has been executed correctly and with proper charset
    encoding.
    
    fixes aws#8315
    Radek Smogura authored and rsmogura committed Mar 4, 2021
    Copy the full SHA
    e8c7733 View commit details
    Browse the repository at this point in the history
  2. Replace interface approacg with adaptor

    * Remove `IMultipartUserDataPartProducer`
    * Add `MultipartUserDataPart` & `IMultipart`
    * Concrete types to represent raw part and UserData wrapper can be created with
    `MultipartUserDataPart.fromUserData` & `MultipartUserDataPart.fromRawBody`
    * Removed auto-generation of separator (as with tokens hash codes can differ when tokens are not resolved)
    Radek Smogura authored and rsmogura committed Mar 4, 2021
    Copy the full SHA
    b84fa3a View commit details
    Browse the repository at this point in the history
  3. Add readme

    Radek Smogura authored and rsmogura committed Mar 4, 2021
    Copy the full SHA
    a013138 View commit details
    Browse the repository at this point in the history
  4. Refactor code:

    - remove `MultipartContentType`
    - remove `MultipartUserDataPartWrapperOptions`
    - remove `IMultipart`
    - rename `MultipartUserDataPart` -> `MultipartBody`
    - other removals
    - restructure other classes
    - moved part rendering to part class
    - set default separator to hard codeded string
    - added validation of boundry
    rsmogura committed Mar 4, 2021
    Copy the full SHA
    f50d10b View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    5338f1d View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2021

  1. Small simplifications

    rix0rrr committed Mar 8, 2021
    Copy the full SHA
    2563648 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    bc6e06c View commit details
    Browse the repository at this point in the history