Metadata-Version: 2.1
Name: aws-sa
Version: 1.1.7
Summary: A aws script automation deploy
Home-page: https://github.com/jpdik/aws-script-automation
Author: João Paulo de Melo
Author-email: jpmdik@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: awscli
Requires-Dist: ruamel.yaml

# aws-script-automation [![nvm version](https://img.shields.io/badge/version-v1.1.7-blue.svg)](https://pypi.org/manage/project/aws-sa/releases/) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aws-sa.svg?color=orange)
Scripting for AWS API configurations automation

## Instalation

Use pip to make instalation:

`pip install --user aws-sa`

## Loading documentation files to deploy

Just pass the file path in the argument:

`aws-sa [filepath .json or .yaml]`

Examples:

`aws-sa file.yaml`

or

`aws-sa /home/user/Documents/file.json`

## Configuration

At the first time you need from AWS API key from <a href='https://console.aws.amazon.com/iam/home'>IAM User</a>.

Insert de values into the next steps:

`AWS Access Key ID:<YOU_AWS_ID>`

`AWS Secret Access Key:<SECRET_KEY>`

`Default region name:<YOUR_REGION>`

### First step: Configure endpoints

1. Insert the Authorization key and domain from endpoints:

    `Insert Authorization key [d98ausytcdugisajbdh1231dw12d1]: <AUTHORIZATION_KEY>`

    `Insert Domain [http://example.com]: <DOMAIN_WITH_HTTP(S)>`

2. After insert the name from deploy:

    `Insert Deploy Name [prod]: <DEPLOY_NAME>`

The values ​​are stored if you want to use them later (bracketed value). If you want to use it, just press enter in the field.

### Second step: Configure CloudWatch Group

1. Insert the name from CloudWatch group:

    `Insert CloudWatch Group [example]: <NAME_GROUP>`

### third step: Configure custom domain

1. Select a custom domain using arrow keys.

2. Insert value from Base path:

    `Insert Base Path [v1]: <BASE_PATH>`

## Output

A documentation file with the same name as the imported file will be generated with the ending **-export.yaml**.

## Change Region

You can change the region using:

`aws configure set default.region [region]`

