O'Reilly logo

Effective DevOps with AWS - Second Edition by Nathaniel Felsen, Giuseppe Borgese, Yogesh Raheja

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a CloudFormation template for CodePipeline

We will start by creating a file called helloworld-codepipeline-cf- template.py inside EffectiveDevOpsTemplates locally.

We will start the script with our boilerplates:

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required