How to update an expired GitHub PAT #121
-
A customer asked:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
You can update the github PAT if you use the However, if you need to rename the secret and recreate it, there is an extra step after the So we recommend doing this via the AWS web console. When you open the page for the secrets manager entry, you should see a drop down with the KMS key used for encryption, and you want to update it to use the key called |
Beta Was this translation helpful? Give feedback.
-
credit for this solution goes to @yorinasub17 |
Beta Was this translation helpful? Give feedback.
You can update the github PAT if you use the
gruntwork secrets update
command, which will update the secret in place.However, if you need to rename the secret and recreate it, there is an extra step after the
secrets create
command. You need to update the secrets manager secret to be encrypted with the shared KMS key instead of the default. The gruntwork CLI in create mode doesn’t automatically use the right KMS key because it is unfortunately designed for pre deployment and isn’t optimized for post deployment secrets rotation.So we recommend doing this via the AWS web console. When you open the page for the secrets manager entry, you should see a drop down with the KMS key used for enc…