-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
2,567 additions
and
70 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
47 changes: 47 additions & 0 deletions
47
...s-cdk/aws-codepipeline-actions/test/s3/integ.source-bucket-events-cross-stack-same-env.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/// !cdk-integ PipelineStack | ||
|
||
import * as codebuild from '@aws-cdk/aws-codebuild'; | ||
import * as codepipeline from '@aws-cdk/aws-codepipeline'; | ||
import * as s3 from '@aws-cdk/aws-s3'; | ||
import { App, RemovalPolicy, Stack } from '@aws-cdk/core'; | ||
import * as integ from '@aws-cdk/integ-tests'; | ||
import * as cpactions from '../../lib'; | ||
|
||
const app = new App(); | ||
const bucketStack = new Stack(app, 'BucketStack'); | ||
const bucket = new s3.Bucket(bucketStack, 'Bucket', { | ||
removalPolicy: RemovalPolicy.DESTROY, | ||
}); | ||
|
||
const pipelineStack = new Stack(app, 'PipelineStack'); | ||
const sourceOutput = new codepipeline.Artifact(); | ||
new codepipeline.Pipeline(pipelineStack, 'Pipeline', { | ||
stages: [ | ||
{ | ||
stageName: 'Source', | ||
actions: [ | ||
new cpactions.S3SourceAction({ | ||
actionName: 'Source', | ||
bucket, | ||
trigger: cpactions.S3Trigger.EVENTS, | ||
bucketKey: 'file.zip', | ||
output: sourceOutput, | ||
}), | ||
], | ||
}, | ||
{ | ||
stageName: 'Build', | ||
actions: [ | ||
new cpactions.CodeBuildAction({ | ||
actionName: 'Build', | ||
project: new codebuild.PipelineProject(pipelineStack, 'Project'), | ||
input: sourceOutput, | ||
}), | ||
], | ||
}, | ||
], | ||
}); | ||
|
||
new integ.IntegTest(app, 'CodePipelineS3SourceTest', { | ||
testCases: [pipelineStack], | ||
}); |
30 changes: 30 additions & 0 deletions
30
...est/s3/source-bucket-events-cross-stack-same-env.integ.snapshot/BucketStack.template.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"Resources": { | ||
"Bucket83908E77": { | ||
"Type": "AWS::S3::Bucket", | ||
"UpdateReplacePolicy": "Delete", | ||
"DeletionPolicy": "Delete" | ||
} | ||
}, | ||
"Outputs": { | ||
"ExportsOutputRefBucket83908E7781C90AC0": { | ||
"Value": { | ||
"Ref": "Bucket83908E77" | ||
}, | ||
"Export": { | ||
"Name": "BucketStack:ExportsOutputRefBucket83908E7781C90AC0" | ||
} | ||
}, | ||
"ExportsOutputFnGetAttBucket83908E77Arn063C8555": { | ||
"Value": { | ||
"Fn::GetAtt": [ | ||
"Bucket83908E77", | ||
"Arn" | ||
] | ||
}, | ||
"Export": { | ||
"Name": "BucketStack:ExportsOutputFnGetAttBucket83908E77Arn063C8555" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.