Skip to content

aws not found error #5

@adambyer

Description

@adambyer

Hi. Hoping you can help with this. I'm trying to run an aws command from heroku-postbuild. I've added your buildpack and am able to run the aws command in a one off dyno like...

heroku run aws cloudfront create-invalidation --distribution-id ###

But when I add it to my package.json heroku-postbuild parameter, I get the following error...

remote:        Running heroku-postbuild
remote:        
remote:        > app@1.0.0 heroku-postbuild /tmp/build_s87d6fs78d
remote:        > aws cloudfront create-invalidation --distribution-id ###
remote:        
remote: sh: 1: aws: not found

Any idea why aws is not available at that point, or what I can do to fix this?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions