Skip to content

A collection of shell (POSIX, Bash) scripts for various purposes.

License

Notifications You must be signed in to change notification settings

webyneter/shell-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shell Scripts

A collection of shell (POSIX, Bash) scripts for various purposes.

curl the specific version to use any of them in your scripts, for example:

source <(curl --silent https://raw.githubusercontent.com/webyneter/shell-scripts/1.1.2/sourced/prompting.bash)

Google Cloud Platform Scripts

Service Account Creation

  1. Download:
    curl \
        --silent \
        --output ./create_gcp_service_account \
        https://raw.githubusercontent.com/webyneter/shell-scripts/master/gcp/create_gcp_service_account.bash
    chmod +x ./create_gcp_service_account
  2. Run:
    ./create_gcp_service_account \
      my-project \
      my-service-account-username \
      'My Service Account description' \
      .gcp_service_account_private_keys

Service Account IAM Role Binding

  1. Download:
    curl \
        --silent \
        --output ./assign_gcp_service_account_iam_roles \
        https://raw.githubusercontent.com/webyneter/shell-scripts/master/gcp/assign_gcp_service_account_iam_roles.bash
    chmod +x ./assign_gcp_service_account_iam_roles
  2. Run:
    ./assign_gcp_service_account_iam_roles \
      my-project \
      my-service-account-username \
      'roles/serviceusage.serviceUsageAdmin roles/servicemanagement.admin roles/compute.networkAdmin'