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
""" | |
Create SNS Subscription for a give topic with a variable length of subscriptions to create, better than making api calls | |
""" | |
from stacker.blueprints.base import Blueprint | |
from troposphere.sns import SubscriptionResource, Topic | |
from troposphere.ecr import Repository, LifecyclePolicy | |
from awacs.aws import Allow, PolicyDocument, AWSPrincipal, Statement | |
import awacs.ecr as ecr | |
import awacs.iam as iam | |
from troposphere import Tags |
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_ec2, | |
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_ec2, | |
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, | |
core, | |
) | |
from RoleA import Compute |
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_ec2, | |
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, | |
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, | |
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
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
{ | |
"Resources": { | |
"CodepipelineRole3288BFBB": { | |
"Type": "AWS::IAM::Role", | |
"Properties": { | |
"AssumeRolePolicyDocument": { | |
"Statement": [ | |
{ | |
"Action": "sts:AssumeRole", | |
"Effect": "Allow", |
NewerOlder