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
MyDeployBucket: | |
Type: AWS::S3::Bucket | |
DeletionPolicy: Delete | |
Properties: | |
AccessControl: Private | |
VersioningConfiguration: | |
Status: Suspended |
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
MyCodePipeline: | |
Type: AWS::CodePipeline::Pipeline | |
Properties: | |
ArtifactStore: | |
Type: S3 | |
Location: !Ref MyDeployBucket | |
RoleArn: !GetAtt | |
- MyCodePipelineServiceRole | |
- Arn | |
Stages: |
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
MyCodePipeline: | |
Type: AWS::CodePipeline::Pipeline | |
Properties: | |
ArtifactStore[...] | |
RoleArn:[...] | |
Stages: | |
- Name: Source # this is the name that will show up in the AWS console, so consider this the user-friendly name | |
Actions: | |
- Name: Get-sources # this is the name used to reference a step by. Consider this the developer-friendly name | |
ActionTypeId: |
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
DeployToStaging: | |
Type: AWS::CodeBuild::Project | |
Properties: | |
Name: "Deploy-to-staging" #this is the name that we'll later use to reference this project inside the CodePipeline definition | |
ServiceRole: !GetAtt | |
- ResourcesCodePipelineServiceRole #codepipeline will pass this role to the CodeBuild projects so that they have the rights to create/update/delete resources | |
- Arn | |
Artifacts: | |
Type: CODEPIPELINE | |
Environment: |
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
Policies: | |
- PolicyName: mypolicy | |
PolicyDocument: | |
Version: "2012-10-17" | |
Statement: | |
- Effect: Allow | |
Resource: * | |
Action: * |
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
Policies: | |
- PolicyName: my-pipeline-policy | |
PolicyDocument: | |
Version: "2012-10-17" | |
Statement: | |
- Effect: Allow | |
Resource: | |
- !Sub "arn:aws:logs:*:${AWS::AccountId}:log-group:/aws/codebuild/*" | |
- !Sub "arn:aws:logs:*:${AWS::AccountId}:log-group:/aws/codebuild/*:log-stream:*" | |
Action: |
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
MyCodePipelineServiceRole: | |
Type: "AWS::IAM::Role" | |
Properties: | |
RoleName: "my-pipeline-role" | |
AssumeRolePolicyDocument: | |
Version: "2012-10-17" | |
Statement: | |
- Effect: Allow | |
Principal: | |
Service: |
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
MyCloudWatchWebHookRole: | |
Type: "AWS::IAM::Role" | |
Properties: | |
AssumeRolePolicyDocument: | |
Version: "2012-10-17" | |
Statement: | |
- Effect: Allow | |
Principal: | |
Service: | |
- events.amazonaws.com |
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
MyCloudWatchWebHook: | |
Type: "AWS::Events::Rule" | |
Properties: | |
EventPattern: | |
source: | |
- aws.codecommit | |
detail-type: | |
- "CodeCommit Repository State Change" | |
resources: | |
- !Join |
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
service:my service | |
provider: | |
name: aws | |
runtime: nodejs12.x | |
region: my-region | |
profile: default | |
apiGateway: | |
binaryMediaTypes: | |
- "application/octet-stream" |
OlderNewer