Skip to main content

No project description provided

Project description

JavaScriptPythonGoJavaVS Code

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"
            ]
        }
    ]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iamfast-0.1.2.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distribution

iamfast-0.1.2-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page