A aws script automation deploy
Project description
aws-script-automation
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 IAM User.
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
-
Insert the Authorization key and domain from endpoints:
Insert Authorization key (example: asd09aus81923aas112): <AUTHORIZATION_KEY>
Insert Domain (example: https://example.com): <DOMAIN_WITH_HTTP(S)>
-
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
-
Insert the name from CloudWatch group:
Insert CloudWatch Group [example]: <NAME_GROUP>
third step: Configure custom domain
-
Select a custom domain using arrow keys.
-
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 .prod.yaml.
Change Region
You can change the region using:
aws configure set default.region [region]
Merge or overwrite documentation file
You can merge or overwrite a API with another documentation file using:
aws-sa [file] --id <ID_API> [--overwrite|--merge]
Configure automatically gateway-responses
You can configure automatically gateway-responses using:
aws-sa --id <ID_API> [--gateway-response]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.