File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -221,11 +221,23 @@ kubectl create secret generic registry-secret \
221221
222222> For more details on the configuration see: [ amazon-ecr-credentials-helper] ( https://github.com/awslabs/amazon-ecr-credential-helper#docker )
223223
224- Create a secret for the AWS credentials. The credentials must have a policy applied that allows access to Amazon ECR.
224+ Create a secret for the AWS credentials file. The credentials must have a policy applied that allows access to Amazon ECR.
225+
226+ Create the credentials file:
227+ ``` bash
228+ export AWS_ACCESS_KEY_ID=" "
229+ export AWS_ACCESS_SECRET_KEY=" "
230+
231+ cat > ecr-credentials.txt << EOF
232+ [default]
233+ aws_access_key_id=$AWS_ACCESS_KEY_ID
234+ aws_secret_access_key=$AWS_ACCESS_SECRET_KEY
235+ EOF
236+ ```
225237
226238```
227239kubectl create secret generic -n openfaas \
228- aws-ecr-credentials --from-file aws-ecr-credentials=$HOME /ecr-credentials.txt
240+ aws-ecr-credentials --from-file aws-ecr-credentials=. /ecr-credentials.txt
229241```
230242
231243Modify your ` values.yaml ` file accordingly to mount the secret in the Pro Builder.
You can’t perform that action at this time.
0 commit comments