Skip to content

Commit e2cd2d7

Browse files
weltekialexellis
authored andcommitted
Add ECR credentials file example for pro-builder
Show a full example of the AWS credentials file to use the pro-builder with ECR. Signed-off-by: Han Verstraete (OpenFaaS Ltd) <[email protected]>
1 parent 7e2314e commit e2cd2d7

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

chart/pro-builder/README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff 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
```
227239
kubectl 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

231243
Modify your `values.yaml` file accordingly to mount the secret in the Pro Builder.

0 commit comments

Comments
 (0)