Skip to content

Instantly share code, notes, and snippets.

from aws_cdk import (
aws_iam as aws_iam,
aws_s3 as aws_s3,
aws_ecr,
aws_codebuild,
aws_codepipeline,
aws_codepipeline_actions,
aws_s3,
core,
from aws_cdk import (
aws_iam as aws_iam,
aws_s3 as aws_s3,
aws_ecr,
aws_codebuild,
aws_codepipeline,
aws_codepipeline_actions,
aws_s3,
core,
from aws_cdk import (
aws_iam as aws_iam,
aws_s3 as aws_s3,
core,
)
from IAMRole import IAMRole
from JumpRole import JumpRole
app = core.App()
from aws_cdk import (
aws_iam as aws_iam,
aws_s3 as aws_s3,
core,
)
class IAMRole(core.Stack):
DynamoDBTable:
Type: AWS::DynamoDB::Table
Properties:
TableName: repokid_roles
AttributeDefinitions:
- AttributeName: RoleId
AttributeType: S
- AttributeName: Account
AttributeType: S
- AttributeName: RoleName
@josjaf
josjaf / lambdaAMIBackups.py
Created March 19, 2018 14:46 — forked from bkozora/lambdaAMIBackups.py
AWS Lambda AMI Backups
# Automated AMI Backups
#
# @author Robert Kozora <bobby@kozora.me>
#
# This script will search for all instances having a tag with "Backup" or "backup"
# on it. As soon as we have the instances list, we loop through each instance
# and create an AMI of it. Also, it will look for a "Retention" tag key which
# will be used as a retention policy number in days. If there is no tag with
# that name, it will use a 7 days default value for each AMI.
#