Skip to content

Commit

Permalink
testing parameter store
Browse files Browse the repository at this point in the history
  • Loading branch information
priyaranjanpatil committed Dec 4, 2023
1 parent 7b909cb commit 1446075
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,8 @@ jobs:
run: |
# Replace 'YourPath' with your specific path in Parameter Store
aws ssm get-parameters-by-path --path "/core/es_indexer/dev_ecr_ecs_config/" --recursive --query 'Parameters[*].[Name,Value]' --output json > parameters.json
- name: Process Parameters
run: |
# Read the contents of the parameters.json file and loop through them
while IFS= read -r line; do
echo "Processing line: $line"
# Perform actions on each line (JSON object) using jq
# For example, extracting specific fields or values
name=$(echo "$line" | jq -r '.[0]')
value=$(echo "$line" | jq -r '.[1]')
echo "Name: $name, Value: $value"
done < parameters.json
echo parameters.json

# - name: Prepare
# id: prep
Expand Down

0 comments on commit 1446075

Please sign in to comment.