techthoughts2 / Catesta

Catesta is a PowerShell module and vault project generator. It uses templates to rapidly scaffold test and build integration for a variety of CI/CD platforms.
https://www.catesta.dev/
MIT License
169 stars 20 forks source link

AWS buildspec_pwsh_windows.yml not referencing PS7 #23

Closed techthoughts2 closed 4 years ago

techthoughts2 commented 4 years ago

Expected Behavior

Buildspec file should download, install, and run PS7

Current Behavior

Incorrectly references PS6 path:

- powershell -command '.\configure_aws_credential.ps1'
- aws s3 cp s3://bucket/PowerShell-7.0.0-win-x64.msi PowerShell-7.0.0-win-x64.msi --quiet
- powershell -command "Start-Process $env:CODEBUILD_SRC_DIR\PowerShell-7.0.0-win-x64.msi -ArgumentList '/qn /norestart' -Wait" - '& "C:\Program Files\PowerShell\6\pwsh.exe" -command ''.\install_modules.ps1'''

Possible Solution

Change to reference PS7 path

Steps to Reproduce

  1. Build a new PowerShell project
  2. Select AWS CI/CD with windows pwsh
  3. Push though CodeBuild
techthoughts2 commented 4 years ago

This was addressed in a previous release.