Permission denied while elastic beanstalk is retrieving S3 file

前端 未结 5 1968
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-09 11:11

I have files stored on S3 and wrote .ebextensions config to automatically copy the them to new instances. I\'m receiving this error in the Elastic Beanstalk con

5条回答
  •  无人及你
    2020-12-09 11:41

    If you have your IAM role for the machine configured to get access to the file you can do the following in .ebextensions

    commands:
      01a_copy_file:
        command: aws s3 cp s3://bucket/path/file /destination/
    

提交回复
热议问题