diff --git a/templates/code_pipeline.yml b/templates/code_pipeline.yml deleted file mode 100644 index 9781e6d..0000000 --- a/templates/code_pipeline.yml +++ /dev/null @@ -1,103 +0,0 @@ -AWSTemplateFormatVersion: "2010-09-09" -Description: Creates a CodePipeline for a CI/CD pipeline -Parameters: - - #Default project name that - #the git repo will be called - ProjectName: - Type: String - Default: homepage - - RepositoryBranch: - Type: String - Default: dev - - RepositoryDescription: - Type: String - Default: Personal Website hosted using S3 - -Resources: - ################################# - #Everything from the InputArtifact - #and OutputArtifact for all CodeBuild stages - #will be stored in this s3 bucket - ################################# - ArtifactStoreBucket: - Type: AWS::S3::Bucket - Properties: - AccessControl: BucketOwnerFullControl - BucketName: - !Join ['', ['artifacts-bucket-', !Ref ProjectName]] - Tags: - - - Key: stage - Value: dev - - - Key: retain - Value: "false" - - - Key: project - Value: !Ref ProjectName - - - Key: usedby - Value: CodePipelineBuildStages - - GitRepo: - Type: AWS::CodeCommit::Repository - Properties: - RepositoryDescription: - !Join [' ', ['Repo for ', !Ref ProjectName, - !Ref RepositoryDescription]] - RepositoryName: !Ref ProjectName - - CFNRole: - Type: AWS::IAM::Role - Properties: - AssumeRolePolicyDocument: - Statement: - - Action: ['sts:AssumeRole'] - Effect: Allow - Principal: - Service: [cloudformation.amazonaws.com] - Version: '2012-10-17' - ManagedPolicyArns: - - arn:aws:iam::aws:policy/AmazonAPIGatewayAdministrator - - arn:aws:iam::aws:policy/AWSCloudFormationFullAccess - Path: / - Policies: - - PolicyName: PassIamRole - PolicyDocument: - Version: "2012-10-17" - Statement: - - Sid: IAMallow - Effect: Allow - ####################################### - #Allowing iam role manipulation - # - ####################################### - Action: - - iam:PassRole - - iam:CreateRole - - iam:GetRole - - iam:UpdateAssumeRolePolicy - - iam:DetachRolePolicy - - iam:DeleteRolePolicy - - iam:PutRolePolicy - Resource: - - "*" - - -Outputs: - CodeCommitURL: - Description: CodeCommit URL - Value: - Fn::Join: - - "" - - - "https://console.aws.amazon.com/codepipeline/home?region=" - - Ref: AWS::Region - - "#/repository/" - - Ref: AWS::StackName - - "/browse/HEAD/--/" - GitRepoName: - Description: Name of the git repository - Value: !GetAtt GitRepo.Name