Metadata-Version: 2.1
Name: iamfast
Version: 0.1.2
Summary: UNKNOWN
Home-page: https://github.com/iann0036/iamfast-python
Author: Ian Mckay
Author-email: iamfast@ian.mn
License: MIT
Platform: UNKNOWN
Description-Content-Type: text/markdown

<p align="center"><a href="https://github.com/iann0036/iamfast-js">JavaScript</a> • <b>Python</b> • <a href="https://github.com/iann0036/iamfast-go">Go</a> • <a href="https://github.com/iann0036/iamfast-java">Java</a> • <a href="https://github.com/iann0036/iamfast-vscode">VS Code</a></p>

# iamfast (Python)

:construction: EXPERIMENTAL - WORK IN PROGRESS :construction:

> IAM policy generation from application code

## Usage

```
python3 python/main.py yourfile.py
```

## Example

```
% cat python/tests/test1.py
import boto3

# Create SQS client
sqs = boto3.client('sqs')

# Create a SQS queue
response = sqs.create_queue(
  QueueName='SQS_QUEUE_NAME',
  Attributes={
    'DelaySeconds': '60',
    'MessageRetentionPeriod': '86400'
  }
)

print(response['QueueUrl'])
```

```
% python3 python/main.py python/tests/test1.py
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "sqs:CreateQueue",
            "Resource": [
                "arn:aws:sqs:us-east-1:123456789012:SQS_QUEUE_NAME"
            ]
        }
    ]
}
```


