Skip to content
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

✨ Enable installer to run on Azure Cloud Shell #499

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

afiune
Copy link
Contributor

@afiune afiune commented Nov 17, 2024

Updated the installer and verified it works.

Screenshot 2024-11-17 at 12 32 16 PM

Resolves #498

Resolves #498

Signed-off-by: Salim Afiune Maya <[email protected]>
elif [ "$AWS_EXECUTION_ENV" == "CloudShell" ]; then
OS="AWSCloudShell"
elif [ "$AWS_EXECUTION_ENV" == "CloudShell" ] || [ "$POWERSHELL_DISTRIBUTION_CHANNEL" == "CloudShell" ]; then
OS="CloudShell"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we distinguish between the different cloud's cloudshell then?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in terms of fixing the issue.

@chris-rock - do we currently have a use case where we want to differentiate between various cloud shells?
If yes, we could change the match condition to something like [[ "$OS" = *CloudShell ]] and prefix the different shells with the provider?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not right now, but in future iterations we want to make sure the script runs in AWS, Azure and GCP cloudshells.

@afiune
Copy link
Contributor Author

afiune commented Nov 18, 2024

Thank you both for the feedback and review, when the time comes that we need to split this into different installation per cloud environment, we should split it. For now, I didn't see the need to copy & paste the same code, so I just renamed things.

Let's merge and release! 🚀

@afiune afiune merged commit c315c36 into main Nov 18, 2024
8 checks passed
@afiune afiune deleted the afiune/498/cloud-shell branch November 18, 2024 17:03
@github-actions github-actions bot locked and limited conversation to collaborators Nov 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable installer in Azure CloudShell environment
3 participants