aws cloudformation and windows powershell dsc better together

Download AWS Cloudformation and Windows PowerShell DSC Better Together

Post on 13-Feb-2017

214 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

AWS Cloudformation and Windows PowerShell DSC Better Together

AWS CloudFormation and Windows PowerShell DSC- Better Together -

Joe Grenier

Senior Software Engineer

BlueMetal Architects

jgrenier@bluemetal.com

BlueMetal at a Glance

633Service AreasIndustry SpecializationsLocationsCloud & ServicesOpen SourceCollaboration & SocialData Platforms & AnalyticsDevices & MobilityStrategy & DesignHealth Care Life SciencesFinancial ServicesProfessional ServicesBostonNew York Chicago

What is PowerShell DSC?

Desired State Configuration

Configuration management platform built into Windows Server 2012 R2 and Windows 8.1 (Windows Management Framework 4.0)

Express the desired state of your systems using declarative language syntax

Compiled into .mof files (Managed Object Format)

Standard from Distributed Management Task Force (DMTF)

DSC uses Resources to put a node into the desired state

Resources are PowerShell script modules

Built into DSC

Microsoft releases new resources in out-of-band waves

PowerShell DSC community

How Does Deployment Work With DSC?

Calls

MOF onTarget Node

DSC ResourcesspecializedWindows PowerShell modules

Pushed

Compiled

Push Mode

Configuration Script

MyConfig.ps1

MOF

SERVER2.mof

Authoring

Deployment

5

7/8/15

2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Config script on

Target Node

DSC ResourcesspecializedWindows PowerShell modules

Pushed

Or

Configuration Script

MyConfig.ps1

MOF

SERVER2.mof

Authoring

Deployment

Compiled

Calls

6

7/8/15

2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Calls

Target Node

DSC ResourcesspecializedWindows PowerShell modules

Compiled

Pull Mode

Configuration Script

MyConfig.ps1

MOF

SERVER2.mof

Authoring

Deployment

Pull

Server

Staging

Poll

MOF

7

7/8/15

2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

What About CloudFormation?

Well use CloudFormation to:

Set up AWS VPC

Address range

Subnets

IGW

Route tables

Bootstrap DSC for individual servers

Download resource modules

Download and run helper scripts (reset Admin p-word, rename server, unzip DSC resource modules, etc.)

Run DSC configuration script

Example: AWS Quickstart

https://s3.amazonaws.com/quickstart-reference/microsoft/powershelldsc/latest/doc/Windows_PowerShell_DSC_on_AWS.pdf

Where we end up

How we get there: CloudFormation

How well get there: PowerShell DSC

Resources

AWS Quick Start Doc:

https://s3.amazonaws.com/quickstart-reference/microsoft/powershelldsc/latest/doc/Windows_PowerShell_DSC_on_AWS.pdf

Powershell.org The DSC Book:

https://www.penflip.com/powershellorg/the-dsc-book

DSC Resource Kit (All Modules)

https://gallery.technet.microsoft.com/scriptcenter/DSC-Resource-Kit-All-c449312d

Recommended

View more >