Skip to content

pwsh: Permission denied with amazonlinux2-aarch64-standard:3.0 on CodeBuild #758

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

Open
JuanZamudioGBM opened this issue Feb 18, 2025 · 0 comments

Comments

@JuanZamudioGBM
Copy link

JuanZamudioGBM commented Feb 18, 2025

We have some lambdas in dotnet arm and we are using amazonlinux2-aarch64-standard:3.0 as the Image in the code build project. We use some powershell scripts to modify some csprojs and run some code coverage validations.

We deployed on Thursday 13 2025 with no problems, but on Friday 14 2025 executing the powershell script we received the error Permission denied.

We are able to reproduce the error just with pwsh -- version in the buldspec of the pull request.

[Container] 2025/02/18 22:03:47.560685 Running command pwsh --version
/codebuild/output/tmp/script.sh: line 4: /usr/bin/pwsh: Permission denied

Expected behavior
See the version of powershell installed

Platform (please complete the following information):
amazonlinux2-aarch64-standard:3.0

Additional context
We tried to manually install another version of powershell (7.5.0) but we get the same error, also we have other lambdas in the same account running on aws/codebuild/standard:7.0 that where the codebuild runs just fine

Dis something change and have to do another thing to run powershell scripts on arm64?

--edit:
I jus changed the installation folder to /usr/bin/pwsh2 and I can run my powershell scripts again using a custom installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant