-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathapp.py
More file actions
31 lines (22 loc) · 1.16 KB
/
app.py
File metadata and controls
31 lines (22 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python3
import os
import aws_cdk as cdk
from aws_codepipeline.aws_codepipeline_stack import AwsCodepipelineStack
app = cdk.App()
AwsCodepipelineStack(app, "AwsCodepipelineStack",
# If you don't specify 'env', this stack will be environment-agnostic.
# Account/Region-dependent features and context lookups will not work,
# but a single synthesized template can be deployed anywhere.
# Uncomment the next line to specialize this stack for the AWS Account
# and Region that are implied by the current CLI configuration.
#env=cdk.Environment(account=os.getenv('CDK_DEFAULT_ACCOUNT'), region=os.getenv('CDK_DEFAULT_REGION')),
# Uncomment the next line if you know exactly what Account and Region you
# want to deploy the stack to. */
env=cdk.Environment(account='372775801647', region='eu-central-1'),
stack_name='github-codepipeline-stack'
# For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html
)
cdk.Tags.of(app).add(key='feature',value='resource_stack')
cdk.Tags.of(app).add(key='contact',value='abc@againabc.com')
cdk.Tags.of(app).add(key='team',value='best_team')
app.synth()