AWS Command

Enhancements in DevOps Automation Tool

User Guide: Configuring AWS in DevOps-Bot

This guide will walk you through configuring AWS credentials for use with DevOps-Bot. Follow the steps below to initialize and configure AWS for the tool.

  1. Install DevOps-Bot:

    Before configuring AWS, ensure DevOps-Bot is installed on your system. Follow the relevant installation guide for your operating system or container environment.

  2. Initialize DevOps-Bot:

    After installing DevOps-Bot, initialize the tool to set up its required files. This will create the necessary configuration files and directories.

    dob brood --init

    Output: This command will initialize the tool and prepare all required files in the default directory.

  3. Log in to the AWS Console:

    Log in to your AWS Management Console and navigate to the IAM (Identity and Access Management) service.

  4. Create AWS Access Keys:

    Go to IAM > Users in the AWS Console.

    Select an existing user or create a new user based on your requirements.

    Assign the necessary permissions to the user based on your intended use of the tool:

    • For full access: Attach the AdministratorAccess policy.
    • For specific actions: Attach policies like EC2FullAccess, S3FullAccess, etc., depending on your requirements.

    Once permissions are set, generate Access Keys for the user:

    • AWS will provide an Access Key ID and a Secret Access Key.
    • Save these credentials securely as they will be required in the next step.
  5. Configure AWS Credentials in DevOps-Bot:

    Use the dob aws config command to configure AWS credentials for DevOps-Bot. This step encrypts and securely stores the credentials for the tool.

    dob aws config --ak <AWS_ACCESS_KEY_ID> --sk <AWS_SECRET_ACCESS_KEY> --r <AWS_REGION>

    Example:

    dob aws config --ak 87r4cdkvjcdjhkkjddj --sk 7eufdi64dikkjfdxjkfdsujk --r us-east-1
  6. Output of AWS Configuration:

    Once the above command is executed successfully, you will see the following output:

    AWS credentials encrypted and saved locally.
    AWS credentials configured successfully.
  7. Verify the Configuration:

    To ensure the AWS configuration is working as expected:

    • Run a sample AWS operation using DevOps-Bot or use the dob command to check for available AWS options.
    • Ensure the configured region and credentials align with your AWS account.

Notes:

End of Guide

You have successfully configured AWS credentials in DevOps-Bot. If you encounter any issues, feel free to reach out or refer to the troubleshooting section of the user manual.

Overview

The latest release of the DevOps automation tool introduces a comprehensive set of AWS commands to facilitate cloud infrastructure management directly from the CLI. This update provides DevOps teams with powerful capabilities for creating, managing, and deleting AWS resources across various services, including EC2, VPC, EKS, RDS, S3, IAM, and CodePipeline. Each command is designed with robust error handling, proper validation, and optional parameter support for fine-tuning operations.

New Features and Commands

1. EC2 Management

2. VPC and Networking

3. Load Balancer and Target Group

4. IAM Management

5. S3 Bucket Management

6. EKS Cluster Management

7. CodePipeline Management

Error Handling and Logging

All commands include robust error handling using boto3 exceptions (ClientError, NoCredentialsError, etc.). Errors are logged and displayed in a user-friendly manner with appropriate messages. Successful operations are confirmed with relevant IDs or ARNs.

Security

The tool ensures secure handling of AWS credentials by leveraging environment variables or configuration files for authentication. Commands requiring sensitive information, such as IAM roles or key pairs, prompt users to follow AWS best practices.


Installation Steps PDF Reference for AWS configuration

For detailed installation steps, please refer to the PDF documentation:


Your browser does not support PDFs. Download the PDF.