This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Automated AMI Backups | |
# | |
# @author Robert Kozora <[email protected]> | |
# | |
# 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. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DynamoDBTable: | |
Type: AWS::DynamoDB::Table | |
Properties: | |
TableName: repokid_roles | |
AttributeDefinitions: | |
- AttributeName: RoleId | |
AttributeType: S | |
- AttributeName: Account | |
AttributeType: S | |
- AttributeName: RoleName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aws_cdk import ( | |
aws_iam as aws_iam, | |
aws_s3 as aws_s3, | |
core, | |
) | |
class IAMRole(core.Stack): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Resources": { | |
"CodepipelineRole3288BFBB": { | |
"Type": "AWS::IAM::Role", | |
"Properties": { | |
"AssumeRolePolicyDocument": { | |
"Statement": [ | |
{ | |
"Action": "sts:AssumeRole", | |
"Effect": "Allow", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
codebuild_docker_build_aardvark = aws_codebuild. \ | |
PipelineProject(self, "CodebuildDockerBuildAardvark", | |
project_name=f"{shared_params['namespace']}-Docker-Build-Aardvark", | |
build_spec=aws_codebuild.BuildSpec.from_source_filename( | |
filename='pipeline_delivery/aardvark_buildspec.yml'), | |
environment=aws_codebuild.BuildEnvironment( | |
privileged=True, | |
# build_image='LinuxBuildImage.STANDARD_1_0', | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aws_cdk import ( | |
aws_iam as aws_iam, | |
aws_s3 as aws_s3, | |
core, | |
) | |
from aIAMRole import IAMRole | |
from Build import Base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aws_cdk import ( | |
aws_iam as aws_iam, | |
aws_s3 as aws_s3, | |
aws_ecr, | |
aws_codebuild, | |
core, | |
) |
OlderNewer