Skip to content

Mr1008/aws-ssm-cli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-ssm-client

Build License

A dotnet open source which provides aws system manager using tool

🎁 Features:

  • Best practice for the environment variables names according to system parameters configured in AWS system manager store
  • Configuration of ssm paths
  • Synchronization of environment variables with system parameters values
  • View current synchronization state of environment variables

☀️ .NET Runtime

This project is built with DotNet 6.0 and is mandatory to install before using.

You can find and install it here.

Verify your dotnet version:

image

🎁 Installation

The Installer publishes the code to the machine applications directory and adds it to your system's path.

The installer can be found at the root folder under its own directory.

  • Windows

    • Compile and run the installer project as an Administrator while being in repo root directory:
dotnet run --project src/Aws.Ssm.Cli.Installer/Aws.Ssm.Cli.Installer.csproj
  • macOS

    • Compile and run the installer project while being in repo root directory:
sudo dotnet run --project src/Aws.Ssm.Cli.Installer/Aws.Ssm.Cli.Installer.csproj

Open terminal / cmd and run:

aws-ssm-cli help

or

ascli help

If everything ran smoothly, you should see the list of supported commands

🎉 Usage

The user should be authenticated (selected role) according to aws environment with access to AWS System Manager. Recommended external tools:

Command line:

aws-ssm-cli

FYI - The CLI can be executed using the commands ascli or aws-ssm-cli.

📋 Profile configuration

First time for the profile configuration recommended to run/select command:

aws-ssm-cli config
  • Set profile name - "default"
  • Recommendation to set prefix for the environment variable(s) - "SSM_"
  • Add ssm-path
  • You can export already valid profile configuration in the json format (example):
{
  "EnvironmentVariablePrefix": "SSM_",
  "SsmPaths": [
    "/demo1",
    "/demo2"
  ]
}
  • Complete/exit configuration

📚 Commands using

set-env

Using to synchronize environment variables with SSM parameters.

macOS

For the activation of environment variables required to recreate a process (terminal, Rider, ...)

get-env

Using to view current synchronization status of the environment with SSM parameters

view

Using for the easy configuration of infrastructure parameters (mapping ssm parameters to and environment variable names)

License

This project is licensed under the MIT License.

About

A dotnet open source which provides aws system manager using tool

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.1%
  • Other 0.9%