AWS Target
You can define an AWS target to be used with an AWS dynamic secrets or an AWS rotated secrets.
Create an AWS Target in the CLI
To create an AWS target from the CLI, run the following command:
akeyless target create aws \
--name <target name> \
--access-key-id <AWS Access ID> \
--access-key <AWS Access Key> \
--region <AWS region>
Where:
-
name
: A unique name of the target. The name can include the path to the virtual folder where you want to create the new target, using slash/
separators. If the folder does not exist, it will be created together with the target. -
access-key-id
: The access key ID assigned to an admin user that will be used to authenticate Akeyless with AWS. -
access-key
: The Access Key of the admin user. -
region
: The AWS region.
You can find the complete list of parameters for this command in the CLI Reference - Akeyless Targets section.
Create an AWS Target in the Console
-
Log in to the Akeyless Console, and go to Targets > New > Cloud (AWS).
-
Define a Name of the target, and specify the Location as a path to the virtual folder where you want to create the new target, using slash
/
separators. If the folder does not exist, it will be created together with the target. -
Select a Protection key with a Customer Fragment to enable Zero-Knowledge and click Next.
For more information about Zero-Knowledge, see Implement Zero Knowledge. -
Choose your preferred authentication mode by selecting one of the options:
-
Check the Use Credentials radio button to authenticate with the AWS admin user credentials.
-
Check the Use Gateway's Cloud Identity option to authenticate with local Gateway's Cloud IAM.
-
Note
Use Gateway's Cloud Identity is relevant for cases where your Gateway is hosted on an AWS resource (i.e., EC2, EKS, ECS Fargate) that has some IAM role associated to it. Make sure the relevant IAM Role has enough permissions to perform the required actions.
- Define the remaining parameters as follows:
-
Access Key ID: If you selected the Use Credentials option in the previous step, specify the Access ID assigned to the admin user you created to authenticate Akeyless with AWS.
-
Secret Access Key: Specify the Access Key assigned to the admin user you created to authenticate Akeyless with AWS.
-
Region: Enter the AWS region that the temporary credentials are permitted to access.
-
Session Token: Token is required only for temporary security credentials retrieved via STS. Otherwise, it can be left empty.
- Click Finish.
Tutorial
Check out our tutorial video on Creating and Configuring AWS Targets.
Updated 5 months ago