Hi,
I am using Octopus external feed (Docker container registry) to integrate with the Gitlab container registry.
I would like to store the container registry’s creds to AWS secret manager. Octopus External feed will require to fetch the credentials from the AWS secrets manager.
Unfortunately, this can’t be used directly within a deployment to modify a feed password, however, there may be another way this can be done.
You could create a runbook that deploys on a schedule or you deploy prior to running your pipeline.
The runbook would grab the secrets from AWS Secret Manager using the information in the blog above and then modify the feed credentials via API.
Some simple pseudocode for this may look like this:
$feedData = [GET WebRequest to feeds endpoint]
$feedData.Password.NewValue = $awsSecret
[PUT WebRequest to feeds endpoint]