Skip to content

fix: Add Construct import in python code for Create CDK Pipeline page #428

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
2 commits merged into from
Nov 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion v2/cdk_pipeline.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ In `my-pipeline/my-pipeline-stack.py` \(may vary if your project folder isn't na
```
import aws_cdk as cdk
from aws_cdk.pipelines import CodePipeline, CodePipelineSource, ShellStep
from constructs import Construct

class MyPipelineStack(cdk.Stack):

Expand Down Expand Up @@ -1202,7 +1203,7 @@ stage = pipeline.add_stage(MyApplicationStage(self, "test",
env=cdk.Environment(account="111111111111", region="eu-west-1")))

stage.add_post(ShellStep("validate", input=source,
commands=["curl -Ssf https://my.webservice.com/"],
commands=["sh ./tests/validate.sh"],
))
```

Expand Down