-
Notifications
You must be signed in to change notification settings - Fork 18
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
normalizing secrets #2368
normalizing secrets #2368
Conversation
|
||
steps: | ||
- name: Configure credentials to Notify account using OIDC | ||
uses: aws-actions/configure-aws-credentials@5fd3084fc36e372ff1fff382a39b10d03659f355 # v2.2.0 | ||
with: | ||
role-to-assume: arn:aws:iam::${{ secrets.PRODUCTION_API_LAMBDA_ECR_ACCOUNT }}:role/notification-api-apply | ||
role-to-assume: arn:aws:iam::${{ secrets.PRODUCTION_ACCOUNT_ID }}:role/notification-api-apply |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an AWS account ID, right? is the new one a global one or specific to ECR? Can the var name be more descriptive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's an AWS account ID, and it's just the corresponding environment AWS Account ID... I've been keeping it consistent across all of the other repos I've done (they've all been named ENVIRONMENT_ACCOUNT_ID) - I can change this to PRODUCTION_AWS_ACCOUNT_ID but then I should go back and change all of the others. What do you think?
@@ -7,7 +7,7 @@ on: | |||
branches: [main] | |||
|
|||
env: | |||
REGISTRY: ${{ secrets.PRODUCTION_API_LAMBDA_ECR_ACCOUNT }}.dkr.ecr.ca-central-1.amazonaws.com/notify | |||
REGISTRY: ${{ secrets.PRODUCTION_ACCOUNT_ID }}.dkr.ecr.ca-central-1.amazonaws.com/notify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question here..
.github/workflows/lambda_staging.yml
Outdated
@@ -7,7 +7,7 @@ on: | |||
branches: [main] | |||
|
|||
env: | |||
REGISTRY: ${{ secrets.STAGING_API_LAMBDA_ECR_ACCOUNT }}.dkr.ecr.ca-central-1.amazonaws.com/notify | |||
REGISTRY: ${{ secrets.STAGING_ACCOUNT_ID }}.dkr.ecr.ca-central-1.amazonaws.com/notify |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and for the staging env
Summary | Résumé
GHA Secrets configured to reflect TF changes
Related Issues | Cartes liées
Test instructions | Instructions pour tester la modification
Once the TF secrets PR has been merged, verify that the workflows all still work.
Release Instructions | Instructions pour le déploiement
None.
Reviewer checklist | Liste de vérification du réviseur