AWSAccessKey
Your AWS account access key or the access key for an authorized IAM user.
Data Type
string
Default Value
""
Remarks
To authorize Apache Kafka requests, provide the credentials for an administrator account or for an IAM user with custom permissions. Set this property along with AWSSecretKey.
Note: Though you can connect as the AWS account administrator, it is recommended to use IAM user credentials to access AWS services.
When AuthScheme is set to AWSMSKIAM, this property is optional. If the host machine has an attached EC2 instance IAM role, the provider automatically obtains credentials from the instance profile, so it is not necessary to specify AWSAccessKey and AWSSecretKey. When you do supply static keys, they are used as the base credentials for signing the MSK token, or, if AWSRoleARN is also set, as the base credentials for the AWS STS AssumeRole call.
Obtaining the Access Key
To obtain the credentials for an IAM user, follow the steps below:
- Sign into the IAM console.
- In the navigation pane, select Users.
- To create or manage the access keys for a user, select the user and then select the Security Credentials tab.
To obtain the credentials for your AWS root account, follow the steps below:
- Sign into the AWS Management console with the credentials for your root account.
- Select your account name or number and select My Security Credentials in the menu that is displayed.
- Click Continue to Security Credentials and expand the Access Keys section to manage or create root account access keys.