Any type of a Cloud Provider in Hakuna Cloud is called simply
provider. Essentially an AWS/EC2
provider is a container for an AWS Security Credentials.
providerconcept, got to providers reference
To configure an AWS/EC2 Cloud Provider in Hakuna Cloud, an access key is needed. It’s possible to generate one through the AWS Console in the IAM Section.
The following table show how the AWS Security Credentials are represented in Hakuna Cloud.
||Choose a name for this credentials set|
||The AWS Access Key ID|
||The AWS Secret Access Key|
The user, for whom the access key has been generated, needs some specific permissions.
The following is an example of an AWS Policy (the first in YAML and the second one in JSON) with all permissions required by Hakuna Cloud to work correctly. You can copy and paste it in a cloudFormation stack or directly in the policy JSON in the IAM AWS Console.
Provider Creation with hakuna
hakunaCLI go to Install the CLI
A Cloud Provider in the
hakuna CLI is called simply
provider. In order to create and configure a
provider of type AWS/EC2 follow the below instructions:
- Open a terminal and type
hakuna provider create;
- Use arrow keys to select
awsec2between the supported Cloud Providers;
- Type a name that identifies the new
- Copy the Access Key Id of the Access Key from the IAM AWS Console;
- Copy the Access Secret Key of the Access Key from the IAM AWS Console;
- Type the AWS Region in which the
provideris going to be used (ex:
- The CLI validate the credentials provided and, if the validation succeeds, save the credentials;
- Verify the
provideris correctly created typing
hakuna provider listand look for the name provided before during the process.
If the credentials validation fails verify that the inserted AWS Security Credentials are corrected and that the Policy, associated with the user credentials, contains at least the permissions listed above at the AWS Policy paragraph.
At the moment it is not possible to use a single
provider for different AWS Regions.