Skip to content

Instantly share code, notes, and snippets.

@josjaf
Created August 15, 2019 22:01
Show Gist options
  • Save josjaf/b6b3e82e8806fae6e38f17b45b5201a9 to your computer and use it in GitHub Desktop.
Save josjaf/b6b3e82e8806fae6e38f17b45b5201a9 to your computer and use it in GitHub Desktop.
from aws_cdk import (
aws_iam as aws_iam,
aws_s3 as aws_s3,
core,
)
from aIAMRole import IAMRole
from Build import Base
from Pipeline import Pipeline
app = core.App()
shared_parameters = {'namespace': 'test-cdk'}
props = None
roles = IAMRole(app, "test-repokid-roles", shared_params=shared_parameters)
shared_outputs = roles.outputs
base = Base(app, "test-repokid-base", shared_params=shared_parameters, shared_outputs=shared_outputs)
shared_outputs = {**shared_outputs, **base.outputs}
print(shared_outputs)
pipeline = Pipeline(app, "test-repokid-pipeline", shared_params=shared_parameters, shared_outputs=shared_outputs)
pipeline.add_dependency(roles)
app.synth()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment