Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CD workflow #888

Merged
merged 6 commits into from
Dec 16, 2024
Merged

Improve CD workflow #888

merged 6 commits into from
Dec 16, 2024

Conversation

blacksam07
Copy link
Contributor

@blacksam07 blacksam07 commented Nov 8, 2024

Board:


Description:

  • Adds new steps in the CD workflow to get all backend defined parameters in AWS Parameter Store, format them, and pass them to the definition task.
  • Retrieve parameters in base of the name convention

Notes:


Tasks:

  • Add each element in this format

Risk:

  • Not tested in real environment

Preview:

Formater
image

db/schema.rb Outdated Show resolved Hide resolved
.github/workflows/cd.yml Outdated Show resolved Hide resolved
@blacksam07 blacksam07 marked this pull request as ready for review November 27, 2024 22:37
- name: Download Parameter Store Values
id: ssm-download
run: |
PARAMETERS_JSON=$(aws ssm describe-parameters --query "Parameters[?contains(Name, 'backend')].{Name:Name,ARN:ARN}" --output json | jq -c '.')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoulds we use contains or maybe only check if it starts with that key? Just thinking that maybe some other keys are named backend and we end up pulling them as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I use contains because the name convention that Devops use is project_name/(backend|frontend)/var_name and I think is a good way to search, which scenery do you think could be retrieve keys that I don't want

.github/workflows/cd.yml Outdated Show resolved Hide resolved
bin/format_secrets.rb Outdated Show resolved Hide resolved
Copy link
Contributor

@JulianPasquale JulianPasquale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@santib santib requested a review from a team December 11, 2024 13:33
@blacksam07 blacksam07 merged commit e3b9bbc into main Dec 16, 2024
7 checks passed
@blacksam07 blacksam07 deleted the improve-cd-workflow branch December 16, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants