Skip to content

Commit

Permalink
Update export-credentials-minio.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fcomte authored Sep 30, 2020
1 parent 4b9d2d7 commit 9723f3f
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/js/components/mon-compte/export-credentials-minio.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,27 @@ export AWS_ACCESS_KEY_ID= ${c.AWS_ACCESS_KEY_ID}
export AWS_SECRET_ACCESS_KEY= ${c.AWS_SECRET_ACCESS_KEY}
export AWS_DEFAULT_REGION= ${c.AWS_DEFAULT_REGION}
export AWS_SESSION_TOKEN= ${c.AWS_SESSION_TOKEN}
export AWS_S3_ENDPOINT= ${c.AWS_S3_ENDPOINT}
`,
},
{
id: 'mc',
label: 'MC client',
fileName: '.bashrc',
text: (c) =>
`
export MC_HOST_minio=https://${c.AWS_ACCESS_KEY_ID}:${c.AWS_SECRET_ACCESS_KEY}:${c.AWS_SESSION_TOKEN}@${c.AWS_S3_ENDPOINT}
`,
},
{
id: 'env',
label: 'Environment variables',
fileName: '.bashrc',
text: (c) => `
export AWS_ACCESS_KEY_ID= ${c.AWS_ACCESS_KEY_ID}
export AWS_SECRET_ACCESS_KEY= ${c.AWS_SECRET_ACCESS_KEY}
export AWS_DEFAULT_REGION= ${c.AWS_DEFAULT_REGION}
export AWS_SESSION_TOKEN= ${c.AWS_SESSION_TOKEN}
export AWS_S3_ENDPOINT= ${c.AWS_S3_ENDPOINT}
`,
},
Expand Down

0 comments on commit 9723f3f

Please sign in to comment.