aws / ec2-image-builder-roadmap

Public Roadmap for EC2 Image Builder.
Other
34 stars 7 forks source link

Add `permission` attribute to `WebDownload` and `S3Download` actions #72

Open robgero opened 2 years ago

robgero commented 2 years ago

Community Note

Tell us about your request What do you want us to build?

It would be nice to specify the permission for the downloaded file when using the WebDownload and S3Download actions.

It could look something like:

name: DownloadMyKey
action: S3Download
inputs:
    - source: s3://mybucket/path/to/privatekey
      destination: /home/user/privatekey
      permissions: 400

and

name: DownloadMyExecutable
action: WebDownload
inputs:
    - source: https://example.com/executable
      destination: /home/user/executable
      permissions: 550

Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard? What outcome are you trying to achieve, ultimately, and why is it hard/impossible to do right now? What is the impact of not having this problem solved? The more details you can provide, the better we'll be able to understand and solve the problem.

This is not hard/impossible to workaround. It would just be cleaner if I was able to specify the permission in the YAML.

Are you currently working around this issue? How are you currently solving this problem?

Add commands to the user-data to fix the permissions on the files.

Additional context Anything else we should know?

See how the CreateFile action works.