No project description provided
Project description
JavaScript • Python • Go • Java • VS 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
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.
Source Distribution
iamfast-0.1.2.tar.gz
(1.9 kB
view hashes)