How do you add chmod +x permission to an AWS Elastic Beanstalk platform hook?

前端 未结 2 556
孤独总比滥情好
孤独总比滥情好 2021-01-13 11:45

Context

I am using Elastic Beanstalk to deploy a very simple test application. I have several packages I want to install using apt. I have included a

2条回答
  •  孤独总比滥情好
    2021-01-13 12:25

    Normally you set the permissions on your local workstation, when before you zip your deployment package.

    However, if you want to do this on EB instance, then you can't use container_commands for that. The reason is that container_commands execute after prebuild. Instead you should try using commands:

    The prebuild files run after running commands found in the commands section of any configuration file and before running Buildfile commands.

提交回复
热议问题