A dotnet open source which provides aws system manager using tool
- 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
This project is built with DotNet 8.0 and is mandatory to install before using.
You can find and install it here.
Verify your dotnet version:
The Installer publishes the code to the machine applications directory and adds it to your system's path.
Installation steps:
- Download latest release to local machine
- Un-puck sources (installer and src folders)
-
- Run Installer.exe (as Administrator)
-
- It will be easier to run the installer correctly with the following command, while in its directory (cd command):
sudo dotnet Installer.dll
- Open terminal / cmd and run:
aws-ssm-cli help
or
ascli help
If everything ran smoothly, you should see the list of supported commands
The user should be authenticated (selected role) according to aws environment with access to AWS System Manager. Recommended external tools:
- okta-aws-cli
- ...
Command line:
aws-ssm-cli
FYI - The CLI can be executed using the commands ascli
or aws-ssm-cli
.
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
Using to synchronize environment variables with SSM parameters.
For the activation of environment variables required to recreate a process (terminal, Rider, ...)
Using to view current synchronization status of the environment with SSM parameters
Using to clean environment variables
Using for the easy configuration of infrastructure parameters (mapping ssm parameters to and environment variable names)
- Update VersionPrefix (major, minor and build numbers) in the file Directory.Build.props.
- After merge into main
- Create a new release:
- Create new tag contains prefix 'v' and VersionPrefix. Example - 'v1.0.0'
- Release name is based on created tag name
- Mark a new release as latest
- Every day command line check if changed a new latest release and indicate about changes with instructions.
This project is licensed under the MIT License.