Skip to content

Commit 8d31af7

Browse files
authored
set user read/write only permissions when creating aws cred files (#887)
1 parent 23b1f36 commit 8d31af7

File tree

6 files changed

+119
-94
lines changed

6 files changed

+119
-94
lines changed

.changeset/angry-guests-notice.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@aws-amplify/backend-cli': patch
3+
---
4+
5+
Create ~/.aws/config and ~/.aws/credentials files using owner read/write only. This is consistent with how the AWS CLI configures these files.

package-lock.json

Lines changed: 80 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cli/src/commands/configure/configure_profile_command.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void describe('configure command', () => {
1616
const profileController = new ProfileController();
1717
const mockAppendAWSFiles = mock.method(
1818
profileController,
19-
'appendAWSFiles',
19+
'createOrAppendAWSFiles',
2020
() => Promise.resolve()
2121
);
2222

packages/cli/src/commands/configure/configure_profile_command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class ConfigureProfileCommand
7373
message: `Enter the AWS region to use with the '${profileName}' profile (eg us-east-1, us-west-2, etc):`,
7474
});
7575

76-
await this.profileController.appendAWSFiles({
76+
await this.profileController.createOrAppendAWSFiles({
7777
profile: profileName,
7878
region,
7979
accessKeyId,

0 commit comments

Comments
 (0)