-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
21 lines (18 loc) · 954 Bytes
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
### Constants
AVAILABLE_RESOURCES = ("EC2", "DynamoDB", "S3", "Backup")
SUPPORTED_ACTIONS = {
"EC2": ["Create Instance.", "Start Instance.", "Stop Instance.", "Terminate Instance.", "Reboot Instance."],
"DynamoDB": ["Create Table.", "Delete Table.", "Create Table Item.", "Delete Table Item."],
"S3": ["Create Bucket.", "Delete Bucket.", "Put Object.", "Delete Object."],
"Backup": ["Backup Resource.", "Delete Backups."]
}
ENDING_PHRASE = ["Anything Else I Can Help You With?"]
EC2_LIFECYCLE = ("StopInstance", "TerminateInstance", "StartInstance", "RebootInstance")
LINUX_AMI = "ami-090fa75af13c156b4"
WINDOWS_AMI = "ami-05912b6333beaa478"
UBUNTU_AMI = "ami-052efd3df9dad4825"
HOURLY_CRON = "cron(0 5/1 ? * * *)"
DAILY_CRON = "cron(0 5 ? * * *)"
ALL_DDB_ARN = 'arn:aws:dynamodb:*:*:table/*'
ALL_EC2_ARN = 'arn:aws:ec2:*:*:instance/*'
POLICY_FOR_BACKUP_ARN = 'arn:aws:iam::aws:policy/service-role/AWSBackupServiceRolePolicyForBackup'