Skip to content

Instantly share code, notes, and snippets.

@andreafalzetti
Created June 14, 2018 13:47
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreafalzetti/48392be47b35e610125362f42b236d88 to your computer and use it in GitHub Desktop.
Save andreafalzetti/48392be47b35e610125362f42b236d88 to your computer and use it in GitHub Desktop.
Creates a URL parameter in AWS SSM
#!/usr/bin/env bash
set -eu -o pipefail
# Usage:
# ./create-url-parameter /dev/projectName/API_BASE_URL https://api.example.com
name="$1"
value="$2"
description="$3"
echo "Creating parameter: <$name>"
aws ssm put-parameter \
--cli-input-json "{
\"Name\": \"$name\",
\"Value\": \"$value\",
\"Type\": \"String\",
\"Description\": \"$description\"
}" \
--overwrite
@Bharathkumarraju
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment