Skip to content

Commit

Permalink
ci: Add test environment
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-dickinson-sainsburys committed Mar 30, 2022
1 parent e63b609 commit 9c38e0b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pipeline/pipeline_stack.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import os

from aws_cdk import (
aws_codepipeline as codepipeline,
aws_codepipeline_actions as codepipeline_actions,
core,
pipelines
)

from pipeline.prowler_stage import ProwlerStage


class PipelineStack(core.Stack):
def __init__(self,
Expand All @@ -18,7 +18,7 @@ def __init__(self,
source_artifact = codepipeline.Artifact()
cloud_assembly_artifact = codepipeline.Artifact()

pipelines.CdkPipeline(
pipeline = pipelines.CdkPipeline(
self,
"ContinuousAudit",
cloud_assembly_artifact=cloud_assembly_artifact,
Expand All @@ -39,3 +39,10 @@ def __init__(self,
synth_command="cdk synth"
)
)

pipeline.add_application_stage(ProwlerStage(
self,
"Test",
env={"account": "673792865749",
"region": "eu-west-2"}
))
13 changes: 13 additions & 0 deletions pipeline/prowler_stage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from aws_cdk import core

from prowler_stack import ProwlerStack


class ProwlerStage(core.Stage):
def __init__(self,
scope: core.Construct,
id: str,
**kwargs) -> None:
super().__init__(scope, id, **kwargs)

prowler = ProwlerStack(self, "Prowler")

0 comments on commit 9c38e0b

Please sign in to comment.