config file syntax

Answered

Hello,

     I am new to IntelliJ, and am trying to use it with AWS SDK.

     I have an IAMS username, access_key_id and a secret_access_key

     I would like to specify these in the config file in my home directory.

     My question is about the syntax:

     Should the 3 lines be like this:

     myUserName

     aws_access_key_id = ABC12345

     aws_secret_access_key = XYZ12345

     OR

     should there be square brackets around the variable values... e.g:

     [myUserName]

     aws_access_key_id = [ABC12345]

     aws_secret_access_key = [XYZ12345]

     Thanks in advance for your reply.

Regards,

Rajnesh

0
3 comments

Hello Rajnesh,

Square brackets only around name (https://docs.aws.amazon.com/en_us/cli/latest/userguide/cli-configure-profiles.html):

 

[myUserName]

aws_access_key_id = ABC12345

aws_secret_access_key = XYZ12345

 

 

 

0
Avatar
Permanently deleted user

Thank you, Yaroslav.

0

Rajnesh,

You are welcome!

0

Please sign in to leave a comment.