forked from aws-cloudformation/cfn-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresources_codepipeline.yaml
56 lines (56 loc) · 1.68 KB
/
resources_codepipeline.yaml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
AWSTemplateFormatVersion: 2010-09-09
Conditions:
myCondition: !Equals [!Ref "AWS::Region", 'us-east-1']
Resources:
TestPipeline:
Type: AWS::CodePipeline::Pipeline
Properties:
Name: Test-pipeline
ArtifactStore:
Location: 'pipeline-bucket'
Type: S3
RoleArn: arn:aws:iam:::role/AWSCodePipelineRole
Stages:
- Name: Source
Actions:
- Name: Github
ActionTypeId:
Category: Source
Owner: ThirdParty
Provider: GitHub
Version: "1"
OutputArtifacts:
- Name: MyApp
Configuration:
Owner: aws-cloudformation
Repo: cfn-python-lint
PollForSourceChanges: true
Branch: main
OAuthToken: 'secret-token'
- Name: Build
Actions:
- Name: CodeBuild
ActionTypeId:
Category: Build
Owner: AWS
Version: "1"
Provider: CodeBuild
Configuration:
ProjectName: cfn-python-lint
InputArtifacts:
- Name: MyApp
- Name: !ImportValue TestImport
Actions:
- Fn::If:
- myCondition
- Name: CodeBuild
ActionTypeId:
Category: Build
Owner: AWS
Version: !ImportValue Version # doesn't fail on objects
Provider: CodeBuild
Configuration:
ProjectName: cfn-python-lint
InputArtifacts:
- Name: MyApp
- !Ref AWS::NoValue