Creating a CloudFormation template for CodePipeline

We will start by creating a file and calling it helloworld-codepipeline-cf-template.py.

We will start the script with our boilerplates, as shown in the following code:

"""Generating CloudFormation template.""" from awacs.aws import ( Allow, Policy, Principal, Statement, ) from awacs.sts import AssumeRole from troposphere import ( Ref, GetAtt, Template, ) from troposphere.codepipeline import ( Actions, ActionTypeID, ArtifactStore, InputArtifacts, OutputArtifacts, Pipeline, Stages ) from troposphere.iam import Role from troposphere.iam import Policy as IAMPolicy from troposphere.s3 import Bucket, VersioningConfiguration t = Template() t.add_description("Effective DevOps in AWS: Helloworld ...

Get Effective DevOps with AWS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.