Metadata-Version: 2.1
Name: acru-l
Version: 1.0.0a3
Summary: 
License: MIT
Author: Anthony Almarza
Author-email: anthony.almarza@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: acru-l-toolkit (>=1.0.0-alpha,<2.0.0)
Requires-Dist: aws-cdk.aws-apigatewayv2 (==1.79.0)
Requires-Dist: aws-cdk.aws-apigatewayv2-integrations (==1.79.0)
Requires-Dist: aws-cdk.aws-cloudfront (==1.79.0)
Requires-Dist: aws-cdk.aws-dynamodb (==1.79.0)
Requires-Dist: aws-cdk.aws-events (==1.79.0)
Requires-Dist: aws-cdk.aws-events-targets (==1.79.0)
Requires-Dist: aws-cdk.aws-lambda (==1.79.0)
Requires-Dist: aws-cdk.aws-lambda-nodejs (==1.79.0)
Requires-Dist: aws-cdk.aws-lambda-python (==1.79.0)
Requires-Dist: aws-cdk.aws-rds (==1.79.0)
Requires-Dist: aws-cdk.aws-route53 (==1.79.0)
Requires-Dist: aws-cdk.aws-s3 (==1.79.0)
Requires-Dist: aws-cdk.aws-secretsmanager (==1.79.0)
Requires-Dist: aws-cdk.core (==1.79.0)
Requires-Dist: aws-cdk.custom-resources (==1.79.0)
Requires-Dist: click (>=7.1.2,<8.0.0)
Requires-Dist: pydantic[email] (>=1.7.3,<2.0.0)
Requires-Dist: python-dotenv (>=0.15.0,<0.16.0)
Requires-Dist: toml (>=0.10.2,<0.11.0)
Description-Content-Type: text/markdown

# AWS Cloud Resource Utils - Library (ACRU-L)

[![codecov](https://codecov.io/gh/quadio-media/acru-l/branch/main/graph/badge.svg?token=kWn6eJxFwr)](https://codecov.io/gh/quadio-media/acru-l)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
![Build](https://github.com/quadio-media/acru-l/workflows/Build/badge.svg)

Pronounced _Ah-crew-el (*ə-kroo͞′l*)_

An open source framework for collecting and reusing AWS CDK constructs and stacks.

> NOTE: This project is currently not stable (alpha releases only) and is subject change at any time.
> Please use at your own risk.

## Usage: ACRU-L Action

This action provisions AWS stacks given an ACRU-L configuration file. The intention is to encapsulate
the code needed to provision resources without conflating application code with devops requirements.

The goal is to avoid conflating microservice application code with "infrastructure as code".

### Inputs

### `subcommand`

**Optional** The aws-cdk subcommand to run. Default `"deploy -f --require-approval=never"`.

## Example usage

```yaml
uses: quadio-media/acru-l@1.0.0a3
with:
  subcommand: deploy -f
env:
  AWS_REGION: us-east-1
  AWS_ACCOUNT_ID: ${{ secrets.AWS_ACCOUNT_ID }}
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
  DEPLOY_ID: ${{ github.sha }}
  ACRUL_CONFIG_PATH: "./acru-l.toml"
```

### Configuration

The following settings must be passed as environment variables as shown in the example. Sensitive information, especially `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`, should be [set as encrypted secrets](https://help.github.com/en/articles/virtual-environments-for-github-actions#creating-and-using-secrets-encrypted-variables) — otherwise, they'll be public to anyone browsing your repository's source code and CI logs.

| Key | Value | Suggested Type | Required | Default |
| ------------- | ------------- | ------------- | ------------- | ------------- |
| `AWS_ACCOUNT_ID` | Your AWS Account ID. | `secret env` | **Yes** | N/A |
| `AWS_ACCESS_KEY_ID` | Your AWS Access Key. [More info here.](https://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html) | `secret env` | **Yes** | N/A |
| `AWS_SECRET_ACCESS_KEY` | Your AWS Secret Access Key. [More info here.](https://docs.aws.amazon.com/general/latest/gr/managing-aws-access-keys.html) | `secret env` | **Yes** | N/A |
| `AWS_REGION` | The region you want the VPC Stack to live in. | `env` | **Yes** | N/A |
| `DEPLOY_ID` | SHA of the commit that triggered the action. | `env` / `github.sha` | **Yes** | N/A |
| `ACRUL_CONFIG_PATH` | Path to the ACRU-L configuration file to use. | `env` | No | `./acru-l.toml` |


## License

This project is distributed under the [MIT license](LICENSE).


## Why?
The problem with infrastructure as code ...

Monorepos...
Snowflake code...

Confounding application source code with devops

A strict interface and reuse patterns

## Installation

`poetry add -D acru-l`

`pip install acru-l`



## About

### Core Concepts

* Resources - Extended constructs
* Services - Collections of Resources that build a service interface
* Stacks - Collections of Services

#### Resources
Extended constructs with set defaults

#### Services

TBD

#### Stacks

TBD

